fix(mobile): classic toolbar disappearing when pressing formatting buttons

This commit is contained in:
Elian Doran 2025-01-05 01:09:27 +02:00
parent 0c544666d8
commit ef9e21147f
No known key found for this signature in database

View File

@ -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);
});
}
}