-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Unlogical editor navigation with shift+tab in DataTable #843
Comments
Reproduced with https://www.primefaces.org/primereact/#/datatable/edit Looking at https://github.com/primefaces/primereact/blob/master/src/components/datatable/BodyCell.js, line 118, a change from: |
Kind of fixes the issue, but there are still some minor bugs with it. Likely the tab-index has to be removed on blur somewhere, or that on-editing needs to explicitly focus on something. Thanks for the help. |
Seems that the issue might be caused by too quickly switching and navigating with tab. |
Found another bug, seems that sometimes the editor gets stuck when using shift-tab when using some editors. It updates a few times, and ends up with the 0 index when it is editing. because the timeout overrides the -1. Solution is to run How likely would it be for them to accept a pull request or do I need to work off my own fork now? |
They seem to accept some PR but we'd better hear from them before spending more time on this. Someone from the team, what's your position regarding above proposal? Many thanks for your help. |
Sent their support address an email. We'll see what comes of it. I plan to make a fork anyway as the inline editor doesn't have any onCancelEditing or onAcceptEditing callback props. So I guess I'll submit a PR and then we'll know if they accept or not. |
Fixed #843 by restoring tabindex when tabing out of editor
Bug:
Editor doesn't move in logcal way when using SHIFT + TAB when editing a cell in a data table.
Reproduction:
https://www.primefaces.org/primereact/#/datatable/edit
Click a cell
press
tab
N times to move editor forward N times.Press
Shift+tab
M times, editor is opened at - N -M places from current editor. (Ie one back from initial opening of the editor)Press 'tab' again, editor moves to N+1 from initial editor location. (Ie skipping n+M cells from current edior location)
Expected results:
Editor always moves +1 or -1 from current editor position.
Tested with:
FireFox
Chromium
React version:
Version currently on is being run on primefaces.org and my local env: 16.0.0
PrimeReact version:
Version currently on is being run on primefaces.org and my local env: 2.0.0-rc.1
The text was updated successfully, but these errors were encountered: