-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #2957 - MultiSelect: Scroll to focused item on select
- Loading branch information
1 parent
7ccc244
commit 3da8cf2
Showing
3 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In first condition we have to check for "autoOptionFocus" as well else autoOptionFocus = false prop won't work.
Ie.
I have pre-selected some value in multiselect and I don't wan't to scroll to specifc option so I have set autoOptionFocus option to false but it won't due to first condition it will always scroll to last selected option.