Browse Source

Merge pull request #7062 from nocodb/nc-fix/column-manager-fix

fix: delete for formula in fields menu
pull/7064/head
Raju Udava 1 year ago committed by GitHub
parent
commit
12334d02a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/nc-gui/components/smartsheet/details/Fields.vue

6
packages/nc-gui/components/smartsheet/details/Fields.vue

@ -625,7 +625,7 @@ onKeyDown('ArrowUp', () => {
}) })
onKeyDown('Delete', () => { onKeyDown('Delete', () => {
if (document.activeElement?.tagName === 'INPUT') return if (document.activeElement?.tagName === 'TEXTAREA') return
const isDeletedField = fieldStatus(activeField.value) === 'delete' const isDeletedField = fieldStatus(activeField.value) === 'delete'
if (!isDeletedField && activeField.value) { if (!isDeletedField && activeField.value) {
onFieldDelete(activeField.value) onFieldDelete(activeField.value)
@ -633,7 +633,7 @@ onKeyDown('Delete', () => {
}) })
onKeyDown('Backspace', () => { onKeyDown('Backspace', () => {
if (document.activeElement?.tagName === 'INPUT') return if (document.activeElement?.tagName === 'TEXTAREA') return
const isDeletedField = fieldStatus(activeField.value) === 'delete' const isDeletedField = fieldStatus(activeField.value) === 'delete'
if (!isDeletedField && activeField.value) { if (!isDeletedField && activeField.value) {
onFieldDelete(activeField.value) onFieldDelete(activeField.value)
@ -641,7 +641,7 @@ onKeyDown('Backspace', () => {
}) })
onKeyDown('ArrowRight', () => { onKeyDown('ArrowRight', () => {
if (document.activeElement?.tagName === 'INPUT') return if (document.activeElement?.tagName === 'TEXTAREA') return
if (activeField.value) { if (activeField.value) {
const input = document.querySelector('.nc-fields-input') const input = document.querySelector('.nc-fields-input')
if (input) { if (input) {

Loading…
Cancel
Save