How to prevent double click

We developed a grid view with an action associated with row-click event. 

Is there a way we ignore a double click event triggered by users?

  Discussion posts and replies are publicly visible

Parents Reply Children
  • I think the big question is: should users be able to deselect an existing row or not? If no, Mike's suggestion should work well. If yes, it's going to be difficult to distinguish between an accidental double click and a purposeful deselection. I suppose you could store the timestamp of the selection and then check to see when the last selection was to determine if it's been fast or short. However, that seems like overkill to me.

    The other thing I'd suggest thinking about is how bad this really is. If an accidental double click submitted two processes or something like that, I could understand looking at this. However, if it just quickly shows and hides, this seems like a minor issue where your users would only encounter it once or twice before quickly learning that it's a single click.