ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-select: cannot select an item with space/enter

Open vladitasev opened this issue 6 years ago • 4 comments

When you open the select and navigate with keyboard, the currently selected item has the focus, although pressing the arrows moves the background up and down. Therefore, when you press enter/space, you activate the old selection, and not where you navigated with the arrows. This way you can't change the selection by pressing space

vladitasev avatar Apr 27 '20 08:04 vladitasev

Can only be reproduced when all other components but ui5-select and ui5-option are bundled.

vladitasev avatar Apr 27 '20 09:04 vladitasev

When all components but selects are removed from the test page, the problem is that too many invalidations are happening in one tact. In this case there is visual latency for applying focus. Check the video:

ezgif com-video-to-gif

fifoosid avatar Apr 27 '20 10:04 fifoosid

@fifoosid thanks, i'll look into it now

vladitasev avatar Apr 27 '20 11:04 vladitasev

Will largely be fixed by: https://github.com/SAP/ui5-webcomponents/pull/1552

Additionally, we should tackle the invalidation synchronization in another pull request for the select, as it is not related to the framework as the big delay.

vladitasev avatar Apr 27 '20 12:04 vladitasev