A common use for this is to pop up a dialog to confirm a delete action.
Unfortunately, the latest version of jquery-ujs has a bug that can have severe consequences. The confirmation dialog pops up but the user selection is ignored, resulting in the action always being performed.
There is tentative patch waiting to be reviewed.
I've applied it and it seems to fix the problem.