Skip to content

Commit 0e74043

Browse files
committed
fix: editor not getting focus when clicking in an empty area in table mode
1 parent a56415f commit 0e74043

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/lib/components/modes/tablemode/TableMode.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@
770770
771771
// for example when clicking on the empty area in the main menu or on an InlineValue
772772
if (!target.isContentEditable) {
773-
focus()
773+
setTimeout(focus)
774774
}
775775
}
776776

tools/develop-vanilla.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
.jse-json-node.custom-class-boolean .jse-value {
5151
background: pink;
5252
}
53+
54+
.jse-main.jse-focus {
55+
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.24);
56+
}
5357
</style>
5458
</head>
5559

0 commit comments

Comments
 (0)