mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-31 19:51:36 +08:00
fix(mobile): classic toolbar disappearing when pressing formatting buttons
This commit is contained in:
parent
0c544666d8
commit
ef9e21147f
@ -229,7 +229,11 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||
});
|
||||
|
||||
this.$editor.on("focusout", (e) => {
|
||||
$classicToolbarWidget.removeClass("visible");
|
||||
setTimeout(() => {
|
||||
if (document.activeElement !== this.$editor[0]) {
|
||||
$classicToolbarWidget.removeClass("visible");
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user