forms: remove widget-prefilled class on radio/checkbox change (#52054)

This commit is contained in:
Frédéric Péters 2021-03-15 15:42:09 +01:00
parent 4235227cbc
commit 903b424a1c
1 changed files with 3 additions and 0 deletions

View File

@ -391,6 +391,9 @@ $(function() {
$('div.widget-prefilled').on('change input paste', function(ev) {
$(this).removeClass('widget-prefilled');
});
$('div.widget-prefilled input[type=radio], div.widget-prefilled input[type=checkbox]').on('change', function(ev) {
$(this).closest('div.widget').removeClass('widget-prefilled');
});
/* searchable select */
$('select[data-autocomplete]').each(function(i, elem) {