Clearing fields now triggers the change event

This commit is contained in:
James Burton 2020-11-16 00:54:33 +00:00
parent 1c742a83d3
commit fcda22ec5c

View File

@ -308,7 +308,9 @@ mhelperMulti field@Field {..} fs@FieldSettings {..} wrapperClass defs minVals Mu
e.prop('checked', false);
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
}
|]