Skip to content

Vaadin ComboBox Filter timeout #6863

Open
@Aleksey2093

Description

@Aleksey2093

this._filterDebouncer = Debouncer.debounce(this._filterDebouncer, timeOut.after(500), () => {
if (serverFacade.getLastFilterSentToServer() === params.filter) {
// Fixes the case when the filter changes
// to something else and back to the original value
// within debounce timeout, and the
// DataCommunicator thinks it doesn't need to send data
serverFacade.needsDataCommunicatorReset();
}

I have a very long query for DataProvider. It is necessary that the filter does not react immediately when entering and allows the user to enter more characters. 500 milliseconds is very short. You need to be able to change this parameter using "getElement().setProperty(...."

vaadin 23.3.33

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions