Hello,
We’ve encountered an issue with double-clicks. When a user starts rapidly clicking on a component (buttons, link labels, or others), another double-click gets queued before WiseJ displays the loading indicator and begins executing the code, causing our logic to be called multiple times. Is there a way to prevent this using WiseJ?
Expected behavior:
I double-click a button; the code for the double-click event is executed (no further double-clicks are registered at this point). Once the double-click logic has finished running, it becomes possible to trigger the double-click event again.
I’ve attached a sample where this can be observed.
Thank you for your answer.
Hi Pavel,
you might want to try adding
dropDuplicateClicks = true
to your default json. If that is not enough you could disable the button while your handler is running and reenable it at the end or add a busy flag that you can check.
Best regards
Frank
Attaching sample code…
Please login first to submit.
