SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.5k stars 260 forks source link

[ui5-select]: fast navigation to options doesn't work after submit #9757

Open nnaydenow opened 2 weeks ago

nnaydenow commented 2 weeks ago

Bug Description

ui5-select provides option to navigate to specific option if the option's text starts with the respective typed text.

Pressing Enter key closes the popover and confirms the selection of the selected option but doesn't clear the typed characters. With that starting to type new word doesn't change selection.

This affects some test execution since some of the tests doesn't reload the page and they are using the same select.

Isolated example

Affected Component

No response

Expected Behaviour

If option is selected by Enter key and then new word is typed, the selection to be moved to the new word

Isolated Example

No response

Steps to Reproduce

  1. Open example
  2. Open picker
  3. Type a
  4. Press enter right after typing a
  5. When the picker is closed press one of the others letters: b/c/d ...

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

nightly

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

elenastoyanovaa commented 2 weeks ago

Hello @SAP/ui5-webcomponents-topic-p ,

The issue is reproducible, but the interaction should be done fast. Type a, then press Enter and immediately press b - the selection is not moved to the second item. If the same is performed slowly, the issue is not reproducible.

It is a relevant use case as the tests are failing due to the 1s timeout logic for clearing a _typedChars.

Kind Regards, Elena