mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
do not delete area in preview mode
This commit is contained in:
1 parent
30c913b54f
commit
7510e0cb6b
1 file changed
+1
-1
@@ -500,7 +500,7 @@ export default {
|
||||
this.selectedAreaRef.value = null
|
||||
}
|
||||
|
||||
if (['Backspace', 'Delete'].includes(e.key) && this.selectedAreaRef.value && document.activeElement === document.body) {
|
||||
if (this.editable && ['Backspace', 'Delete'].includes(e.key) && this.selectedAreaRef.value && document.activeElement === document.body) {
|
||||
this.removeArea(this.selectedAreaRef.value)
|
||||
|
||||
this.selectedAreaRef.value = null
|
||||
|
||||
Reference in new issue
Block a user