Browse Source

fix(nc-gui): disable auto focus if isPublic or readonly and linked record not exist

pull/7623/head
Ramesh Mane 6 months ago
parent
commit
03f5799fde
  1. 10
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

10
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -129,10 +129,6 @@ watch(expandedFormDlg, () => {
}
})
watch(filterQueryRef, () => {
filterQueryRef.value?.focus()
})
onKeyStroke('Escape', () => {
vModel.value = false
})
@ -179,6 +175,12 @@ const linkOrUnLink = (rowRef: Record<string, string>, id: string) => {
linkRow(rowRef, parseInt(id))
}
}
watch([filterQueryRef, isDataExist], () => {
if (readOnly.value || isPublic.value ? isDataExist.value : true) {
filterQueryRef.value?.focus()
}
})
</script>
<template>

Loading…
Cancel
Save