Skip to content

Commit 8d97dc6

Browse files
authored
Fire 'change' event when selecting radio elements
1 parent 235077b commit 8d97dc6

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
@@ -70,8 +70,8 @@ function bpFieldInitRadioElement(element) {
7070
7171
// when one radio input is selected
7272
element.find('input[type=radio]').change(function(event) {
73-
// the value gets updated in the hidden input
74-
hiddenInput.val($(this).val());
73+
// the value gets updated in the hidden input and the 'change' event is fired
74+
hiddenInput.val($(this).val()).change();
7575
// all other radios get unchecked
7676
element.find('input[type=radio]').not(this).prop('checked', false);
7777
});

0 commit comments

Comments
 (0)