Enable/disable from buttons on all input events (not just key events)
Fixes #1836
This commit is contained in:
parent
13e72f5a6f
commit
2f5e44a02d
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ window.disableButtonIfEmptyField = (field_selector, button_selector) ->
|
|||
|
||||
closest_submit.disable() if field.val() is ""
|
||||
|
||||
field.on "keyup", ->
|
||||
field.on "input", ->
|
||||
if $(@).val() is ""
|
||||
closest_submit.disable()
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue