refac
This commit is contained in:
1 parent
008febb6d7
commit
7ee07df26a
1 file changed
+5
-1
@@ -15,9 +15,13 @@
|
||||
let contentContainerElement;
|
||||
let buttonsContainerElement;
|
||||
|
||||
const updateButtonPosition = () => {
|
||||
const updateButtonPosition = (event) => {
|
||||
setTimeout(async () => {
|
||||
await tick();
|
||||
|
||||
// Check if the event target is within the content container
|
||||
if (!contentContainerElement.contains(event.target)) return;
|
||||
|
||||
let selection = window.getSelection();
|
||||
|
||||
if (selection.toString().trim().length > 0) {
|
||||
|
||||
Reference in new issue
Block a user