-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Left/Right arrow keys wont move text caret on inputs when editing a cell with selectableRange enabled #4563
Comments
Found this workaround for now, not sure if this will break anything else
Still trying to keep the editor open when clicking inside the input but still havent found what module to extend to do that. |
Faced the same problem, thanks for the temporary solution |
+1. I've faced the same issue, but I've managed to sort it out by rolling back to version 6.2.0 - it does not have this glitch. Thanks to @cpgo for JSFiddle - I was decreasing minor version one by one till I've got it fixed :) |
Thanks, version 6.2.0 works. The solution by cpgo works for the arrow keys, however it does not work when you want to click and put the cursor at a specific place in the cell to edit it. |
Yeah, I could not find a workaround for that. In the end we needed a bit more features that were not available out of the box on tabulator and moved away to another library. Still really like tabulator for simpler data grids tho |
Describe the bug
When editing a cell and the table has
selectableRange
enabled left and right arrow keys will not move the input cursorTabulator Info
Working Example
https://jsfiddle.net/4fc5s8oa/6/
Or the example on docs https://tabulator.info/docs/6.2/range#clipboard
To Reproduce
A step by step guide to recreate the issue in your JS Fiddle or Codepen:
selectableRange
Enter
key or single/double clicking depending oneditTriggerEvent
left
key to edit a single letter on the cell inputExpected behavior
I would expect the
input
to work like a normal input, meaning I can navigate with keyboard or click somewhere on the text to move the input caretScreenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
I see that the text area input (https://tabulator.info/docs/6.2/edit#editor-textarea) has a
verticalNavigation
option that almost does what I expect, but as the name suggest only navigating up or down, I tried looking at the code to see if I could implement ahorizontalNavigation
option but had no luckThe text was updated successfully, but these errors were encountered: