Given an %input{type: "text", data: {disable: true}}, if the user is focused on that input, even though the input becomes disabled, the focus doesn't go away so the user can submit the form multiple times.
On chrome the input loses focus by default when it becomes disabled.
I've created a screencast simulating the behaviour (albeit without the use of ujs 🤔). Let me know if I can provide anything else.
Hey fellow humans (and bots),
Problem
Given an
%input{type: "text", data: {disable: true}}
, if the user is focused on that input, even though the input becomes disabled, the focus doesn't go away so the user can submit the form multiple times.On chrome the input loses focus by default when it becomes disabled.
I've created a screencast simulating the behaviour (albeit without the use of ujs 🤔). Let me know if I can provide anything else.
Info
jQuery UJS version:
1.2.2
Safari version:Version 10.0.3 (12602.4.8)
Screencast: https://www.dropbox.com/s/ryf8v76ulqktpx4/jquery_ujs.mov?dl=0 (will provide a better recording than this)