Hello,
knowing that there are already some similar threads, I’d like to ask whether there is an update regarding handling of multiple clicks on one element in a short sequence. In our application, we have following behavior:
- There is a simple click listener on a button which opens a modal window
When the user clicks on the button in a short sequence (double click, triple click), the window opens several times, although a modal window should block any interaction of the user with other UI elements. I assume that this is some race condition between the browser actions and the server side action - the server round trip might just take too long to block more click events from the button on the browser side.
- There is a click listener checking double clicks on grid items, and in the same grid a component column with a click listener on single clicks. When double-clicking on the component column, sometimes the double-click action is triggered, sometimes the single-click action - but multiple times, and few times even both. Most of the times, it works as expected.
The application runs with Vaadin 8.10.3.
Now the question: is there some other way to solve this than adding some check of time-between-events in the buttonClick/itemClick methods of the listeners? There are tens - hundreds of listeners in the application which all would need to be adapted. Or is this behavior just accepted for Vaadin applications as a consequence of the client-server function split and the delay caused by server roundtrips?
Thanks & Regards
Jochen