Skip to content

Commit

Permalink
Use onchange only for radio buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Dec 18, 2018
1 parent f75dffb commit fd80afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/miq_ujs_bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ $(document).ready(function() {
});

// Firefox on MacOs isn't firing onfocus events for radio buttons so onchange is used instead
$(document).on('change', '[data-miq_observe]', function() {
$(document).on('change', '[data-miq_observe][type="radio"]', function() {
var el = $(this);
var parms = $.parseJSON(el.attr('data-miq_observe'));
var id = el.attr('id');
Expand Down

0 comments on commit fd80afa

Please sign in to comment.