Hot to prevent double clicks on Button

Hello,

i found that if the network is not good, users are very easy to dobule-click a Button, but this will affect some logic and feedback incorrect message.

i choose below way:

use local variable and set to false, then use Ajax Refresh to refresh the button or container.


is it the best way to do?

---------------------------------------

is there a way to change mouse pointer icon when click Button?

or any way to prevent double clicks on button?

Hi Pengbin,

There are several components on the Forge that can help you:

If you want to do this yourself, I'd suggest disabling the button via Javascript, so it is effective immediately and doesn't need to go to the server and back (even if it's using Ajax)

Hi Folks,

You can use the below plugin to control the Spam Click globally without adding a block for each button:

OS-UI Component with Sample Link

SILK-UI Component with Sample Link

Live Sample URL Link