We've added column filtering by means of custom header renderer. Since upgrade from 0.31.2 to 0.35.0 (reproduced on 0.35.1 as well) the input inside the header looses focus right after it's selected.
http://jsfiddle.net/zoladkow/8n91mwzd/
I have replicated the issue. We are able to select text from the input but the selection does not remain after releasing the mouse button.
I found a workaround for this issue -
You can use the beforeOnCellMouseDown hook.
Add following method:
this.handleHotBeforeOnCellMouseDown = (event, coords) -> if (coords.row < 0) event.stopImmediatePropagation()
Which basically means that if you select the header (so coordinates are negative), the first row won't be selected, so it won't steal focus from input in your header
I hope it will help!``
We have added an example with inputs in headers https://docs.handsontable.com/pro/1.18.1/demo-filtering.html
Most helpful comment
I found a workaround for this issue -
You can use the beforeOnCellMouseDown hook.
Add following
method:Which basically means that if you select the header (so coordinates are negative), the first row won't be selected, so it won't steal focus from input in your header
I hope it will help!``