-
Notifications
You must be signed in to change notification settings - Fork 78
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
Dropdown: Typing capital letters in an open noSearch dropdown does not focus a value #6069
Comments
Seems like it just happens the first time... |
Note, this is the second occurrence of this issue: #4757 |
OK lets be sure to add a test to (who picks this up...) |
Hey team, this issue is causing a large majority of our tests to fail and makes it difficult to use our product. Any chance of it getting looked at sooner than later? |
Added to the sprint can you look when you can @ericangeles |
@davidcarlsonberg try it on https://main-enterprise.demo.design.infor.com/components/dropdown/example-no-search-lsf.html instead (master is old) or local |
Once we figure this out will patch in a 4.60.1 |
@davidcarlsonberg, are you seeing it now on main-enterprise? |
Yes, I can reproduce it now. It happens only the first time you click Shift + T on Windows10 Chrome after opening the No Search Dropdown. |
Great - do you think you can fix this before the end of the month @davidcarlsonberg ? |
@tmcconechy I'll prioritize this over the weekend and have an update Monday. |
Unfortunately, I'm unable to reproduce this using Browserstack. Can anyone else reproduce in that environment? |
I used Browserstack and was able to reproduce on all browsers. Did you use the correct URL? |
Im not able to reproduce it either (never have) - but since the search is case insensitive anyways i wonder if this can be fixed by making both ends of the string lowerCase? Do you have any suggestions for a fix @s-werking since you can see it clearly? |
Yes, @s-werking , using the URL (https://main-enterprise.demo.design.infor.com/components/dropdown/example-no-search-lsf.html) I am unable to reproduce on Browserstack (Windows10, Chrome 98). |
It looks like this issue started happening after the noSearch dropdown input was disabled in: #5369 Without this line in dropdown.js, a capital letter is searched correctly, although a disabled search does make sense: The issue is that once it hits the line 1766 (self.highlightStartsWith(self.filterTerm);), self.filterTerm is the Shift key symbol and "t" when in branch 4.52.x self.filterTerm is just "t" for the case that "T" is entered in the dropdown search. |
Okay I may have found a possible fix. Let me know what you think @davidcarlsonberg @tmcconechy . Line 1629 - Add '&& !self.isControl(key)' to the conditional |
of dropdown.js |
Can you try to push that - and then we just test out everything else on a PR @davidcarlsonberg and assume it fixes? |
this issue is now resolved. moving this ticket to done. thanks |
Describe the bug
Typing a capital letter to select a value works when the dropdown is closed, but not when the dropdown is open. This happens on dropdowns with the noSearch option set to true.
To Reproduce
Steps to reproduce the behavior:
Expected Result: "T - Thor" should be focused
Actual Result: The blank option is focused
Expected behavior
When a capital letter is typed in an open dropdown with noSearch turned on, the corresponding option should receive focus just as it would when the lowercase letter is typed.
Version
Platform
Related Lawson JIRA Ticket: LSF-50656
The text was updated successfully, but these errors were encountered: