Skip to content
Snippets Groups Projects
Commit 2f5e44a0 authored by Riyad Preukschas's avatar Riyad Preukschas
Browse files

Enable/disable from buttons on all input events (not just key events)

Fixes #1836
parent 13e72f5a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment