Browse Source

Update manifest 'dependsOn' logic to correctly handle boolean values

pull/3776/head
Andrew Kingston 5 years ago
parent
commit
0e1879c6cc
  1. 9
      packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte

9
packages/builder/src/components/design/PropertiesPanel/ComponentSettingsSection.svelte

@ -63,7 +63,14 @@
// If no specific value is depended upon, check if a value exists at all
// for the dependent setting
if (dependantValue == null) {
return !isEmpty(componentInstance[dependantSetting])
const currentValue = componentInstance[dependantSetting]
if (currentValue === false) {
return false
}
if (currentValue === true) {
return true
}
return !isEmpty(currentValue)
}
// Otherwise check the value matches

Loading…
Cancel
Save