Clearing fields now triggers the change event
This commit is contained in:
parent
1c742a83d3
commit
fcda22ec5c
@ -308,7 +308,9 @@ mhelperMulti field@Field {..} fs@FieldSettings {..} wrapperClass defs minVals Mu
|
|||||||
e.prop('checked', false);
|
e.prop('checked', false);
|
||||||
|
|
||||||
if(!keepValueTypes.includes(e.prop('type')))
|
if(!keepValueTypes.includes(e.prop('type')))
|
||||||
e.val("");
|
e.val("").trigger("change");
|
||||||
|
// trigger change is to ensure WYSIWYG editors are updated
|
||||||
|
// when their hidden code field is cleared
|
||||||
}
|
}
|
||||||
|]
|
|]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user