UI5 / UI5/openui5

SearchField: optional Delay in milli-seconds

Open
#2,768 6 comments 0 reactions 1 assignee View on GitHub

@olannyv is already working on this.

Since Feb 12, 2025.

enhancement in progress
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.