Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/PS-429: Ensures the 'Clear' button resets all the fields in the form #698

Open
wants to merge 11 commits into
base: projects/DEV-95-map
Choose a base branch
from
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
Loading