-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cannot perform inline editing of input/textarea if in table cell #3681
Comments
have you tried using onFocus and onBlur to actually manage the focus and blur const handleFocus = (e: React.FocusEvent) => { const handleBlur = (e: React.FocusEvent) => { |
I tried this but this only prevents me from going to next cell which is good but still on pressing arrow keys I am not able to move the cursor within text. Typing works but not the navigation. |
I like to work on this please assign me. |
@ahmaddonishyar Sure you can work on that. are you able to reproduce it? |
I have same issue too :( It seems like it is adjusting the events (click, type event etc... ) in the table cell itself, but it would be nice if there was a disable function. Otherwise, we'll run into obstacles every time we create a custom cell. |
Any update with this Issue? @ahmaddonishyar |
@soyeon9211 you can check this alternate solution if you want, it involves creating custom table component. |
May I work on this? @wingkwong |
@macci001 go ahead |
Hoping this will be added fast really missing thing :( |
NextUI Version
2.4.5
Describe the bug
I have a scenario where I have a Table component and inside the table I have an input/textarea field, if i try to edit the text using arrow keys the navigation takes me to next cell of table.
I have tried using
e.preventDefault();
but it doesn't work. how do I disable the arrow key navigation in table and allow user to navigate the text.Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Create a table and inside table cell add input field or textarea.
Following is my code:
Expected behavior
It should let me perform inline editing and not navigate to next cell.
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
The text was updated successfully, but these errors were encountered: