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
{{ message }}
Repository navigation
EuiSelectableTemplateSitewide requires 2 clicks to trigger onChange events #5020
We noticed in Kibana (elastic/kibana#98851) that the component EuiSelectableTemplateSitewide sometimes requires 2 clicks to trigger the onChange events.
I'm able to reproduce this error in Chrome and Safari, but it works as expected on Firefox.
The issue:
Search any term that brings more than 7 items, so you need to scroll
Scroll down and click on any item from the 7th position onwards
Notice that the list goes back to the top, and still claims that the active item is the first one (not checked though).
Try again, and notice that it now selects the expected item.
I think that it must be related to some initial wrong state because, if you click any of the initially-visible items and then scroll to the intended item, it works as expected.
Activity
afharo commentedon Aug 12, 2021
It looks like there was a fix for it in #4152. But it's no longer working on Chrome and Safari.
I managed to stop the issue from happening by not setting
activeOptionIndex: undefined,in this event handler.@elastic/elastic-ui and @elastic/eui-design, do you think we can stop setting this value at this given point?
cc @myasonik as he applied the fix and may have some insights