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
Prevent Scroll to First Selection on Select/Unselect #4869
Prevent Scroll to First Selection on Select/Unselect #4869
Conversation
Resolves issue for multiselects using `closeOnSelect: false` that caused the list of results to scroll to the first selection after each select/unselect
Just a suggestion, instead of commenting out the feature for the highlightFirstItem prototype, maybe you could simply comment the line where it highlights the first item on select (line 277 in your version of the code now)? |
@os1r1s110 I revised it. |
@MicahBrown is there any indication in the commit history as to why A test or two to assert the behavior that this patch fixes, would also be appreciated. |
@alexweissman Unfortunately, I don't know if I'll have time to write any tests since I'm very busy now. I did do a quick look-through on the commit history and found that the Also, we've been using my change in production for a few months now and haven't noticed any regressions. I know that doesn't cover all cases, but thought I'd mention it. |
No problem, and thanks for getting back to me so quickly. It would appear that
|
Please see #4417 (comment) to understand why we cannot simply remove the |
I notice that #4625 also adds some conditional logic for scrolling to the first item, to handle some other use cases. It almost seems like maybe "scroll-after-select" should be a configurable option? |
Please continue the discussion for this feature in #5150. |
Resolves issue for multiselects using
closeOnSelect: false
that caused the list of results to scroll to the first selection after each select/unselectThis pull request includes a
The following changes were made
If this is related to an existing ticket, include a link to it as well.
#1513