Skip to content

setDisableOnClick() isn't enough RFE #1553

Description

@piemmm

Can you please include a 'debounce' feature or improve the setDisableOnClick method for buttons (as I have a lot of older users who like to double-click everywhere, and the occasional user who sometimes accidentally double-clicks on buttons).

Something like:

setDebounceClick(long millis);

or overload the existing method, to re-enable it after X millis since clicking:

setDisableOnClick(long timeoutMillis);

or, preferably

setDisabledUntilServerReturns(boolean disabled);   // Disables until componenteventlistener has returned

Any would provide a simply way to prevent accidental double-clicks. setDisableOnClick(bool) as it stands isn't really that helpful. This should really be applied to any clickable item in flow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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