Browse Source

fix(nc-gui): use trimStart to prevent user from adding blank form field label with spaces only

pull/9958/head
Ramesh Mane 4 weeks ago
parent
commit
3c7e82994a
  1. 2
      packages/nc-gui/components/smartsheet/Form.vue

2
packages/nc-gui/components/smartsheet/Form.vue

@ -685,7 +685,7 @@ const updateFieldTitle = (value: string) => {
if (activeField.value.title === value) { if (activeField.value.title === value) {
activeField.value.label = null activeField.value.label = null
} else { } else {
activeField.value.label = value activeField.value.label = value.trimStart()
} }
} }

Loading…
Cancel
Save