Moved JS constant inside function

This commit is contained in:
Burtannia 2020-11-18 05:16:12 +00:00
parent 0f51f91334
commit 2eec150289

View File

@ -299,10 +299,10 @@ mhelperMulti field@Field {..} fs@FieldSettings {..} wrapperClass defs minVals Mu
wrapper.remove();
}
// input types where we don't want to reset the value
const keepValueTypes = ["radio", "checkbox", "button"];
function removeVals(e) {
// input types where we don't want to reset the value
const keepValueTypes = ["radio", "checkbox", "button"];
// uncheck any checkboxes or radio fields and empty any text boxes
if(e.prop('checked') == true)
e.prop('checked', false);