-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: Goto Value Skips Rows on String Column, Displays Incorrect Filter, and shift+enter
Doesn't go to Previous
#1162
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1162 +/- ##
==========================================
+ Coverage 44.13% 44.15% +0.01%
==========================================
Files 447 447
Lines 33265 33266 +1
Branches 8356 8355 -1
==========================================
+ Hits 14682 14687 +5
+ Misses 18534 18530 -4
Partials 49 49
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add unit tests for checking onSubmit
gets called when Enter
is pushed on the input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, it looks like submit is getting fired when I'm just clicking "Shift"
Enter should submit and go to next, Shift alone shouldn't do anything, and Shift+Enter should go to previous
shift+enter
Doesn't go to Previous
Looks like shift+Enter to go to previous was never implemented, so I added that as well in this PR. |
@@ -100,11 +102,11 @@ function GotoRow({ | |||
} | |||
}; | |||
|
|||
const handleGotoValueKeyDown = (e: KeyboardEvent<HTMLInputElement>) => { | |||
const handleGotoValueKeySubmit = (e: KeyboardEvent<HTMLInputElement>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use useCallback
here
fixes #1156, #1157