Skip to content

Commit 34f9aa9

Browse files
authored
Merge pull request #3530 from olipayne/patch-2
Fire 'change' event when selecting radio elements
2 parents 8429f8a + 8d97dc6 commit 34f9aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resources/views/crud/fields/radio.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ function bpFieldInitRadioElement(element) {
7171
7272
// when one radio input is selected
7373
element.find('input[type=radio]').change(function(event) {
74-
// the value gets updated in the hidden input
75-
hiddenInput.val($(this).val());
74+
// the value gets updated in the hidden input and the 'change' event is fired
75+
hiddenInput.val($(this).val()).change();
7676
// all other radios get unchecked
7777
element.find('input[type=radio]').not(this).prop('checked', false);
7878
});

0 commit comments

Comments
 (0)