You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that I have a list of options with numeric values, when I navigate via keyboard through the options, the list should scroll and no errors should be thrown.
Actual behavior
An error is being thrown in the console and the list does not scroll.
There's the edge case where it tries to get an activeDescendant that doesn't exist, but I'm not sure how practical actually hitting the code path is...
Code of conduct
Impacted component(s)
sp-combobox
Expected behavior
Given that I have a list of options with numeric values, when I navigate via keyboard through the options, the list should scroll and no errors should be thrown.
Actual behavior
An error is being thrown in the console and the list does not scroll.
Screenshots
Screen.Recording.2024-05-02.at.13.37.43.mov
What browsers are you seeing the problem in?
Chrome
How can we reproduce this issue?
Sample code that illustrates the problem
The Combobox code does
but for instances where
value
starts with a digitquerySelector
on IDs that start with a digit is not a valid selector.Maybe querying by the
value
attribute or querying by[id="${this.activeDescendant?.value}"]
would work better here?Logs taken while reproducing problem
Uncaught DOMException: Failed to execute 'querySelector' on 'DocumentFragment': '#55' is not a valid selector.
is being thrownThe text was updated successfully, but these errors were encountered: