Skip to content

Commit

Permalink
Ensures the 'Clear' button resets all the fields in the form
Browse files Browse the repository at this point in the history
  • Loading branch information
armine-fliplet committed Dec 25, 2024
1 parent 8806eeb commit b9e6d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/libs/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ Fliplet().then(function() {
const addressField = data.fields.filter(field => field._type === 'flAddress');
const addressSelectedFieldOptions = addressField.length ? Object.values(addressField[0].selectedFieldOptions) : [];

if (field.isHidden || (field.readonly && !addressSelectedFieldOptions.includes(field.name) || field._type !== 'flMap')) {
if (field.isHidden || (field.readonly && (!addressSelectedFieldOptions.includes(field.name) || !field._type === 'flMap'))) {
return;
}

Expand Down

0 comments on commit b9e6d63

Please sign in to comment.