Skip to content

Commit

Permalink
fix: editor not getting focus when clicking in an empty area in table…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
josdejong committed Apr 3, 2024
1 parent a56415f commit 0e74043
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/modes/tablemode/TableMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@
// for example when clicking on the empty area in the main menu or on an InlineValue
if (!target.isContentEditable) {
focus()
setTimeout(focus)
}
}
Expand Down
4 changes: 4 additions & 0 deletions tools/develop-vanilla.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
.jse-json-node.custom-class-boolean .jse-value {
background: pink;
}

.jse-main.jse-focus {
box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.24);
}
</style>
</head>

Expand Down

0 comments on commit 0e74043

Please sign in to comment.