SearchField: optional Delay in milli-seconds
@olannyv is already working on this.
Since Feb 12, 2025.
- Dominant language
- JavaScript
- Stars
- 3.3k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
OpenUI5 version: 1.73.2
When using the SearchField's liveChange event, this fires at every single key press. In some cases that makes sense but in the majority, when you type in a key phrase very quickly, it might be better to consolidate the character sequence and fire when the user stopped typing for a short period of time.
In other words, when the user types in the search phrase "TEST" within 0.2s, a single event is fired.
When the user types "T"-"E"-"S"-"T" with a pause auf 1s between the chars, four events should be fired.
Eclipse does that as well, you type in something and only once you stopped typing for a few mill seconds, then the search gets executed.
Can obviously be implemented in custom code but I would think such a behavior would be the norm, not the exception.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.