summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@protonmail.com>2023-02-09 20:51:34 +0800
committerJob Bautista <jobbautista9@protonmail.com>2023-02-09 20:51:34 +0800
commit42742eceae3cd56c2fdee9ec598253cd3d886ee6 (patch)
tree20bfb9ff6d039dc5e5bf064f33c7bb08b392a34e /editor
parentffdba3d91e0ca7df003a97f564451fb0ae97fa8e (diff)
downloaduxp-42742eceae3cd56c2fdee9ec598253cd3d886ee6.tar.gz
Issue #2107 - Clean up caret when destroying editor.
Editor changes caret visibility during drag and drop. But when destroying editor, we don't restore caret state. So we should restore it when destroying editor. Co-authored-by: Makoto Kato <m_kato@ga2.so-net.ne.jp>
Diffstat (limited to 'editor')
-rw-r--r--editor/libeditor/EditorEventListener.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/libeditor/EditorEventListener.cpp b/editor/libeditor/EditorEventListener.cpp
index 1a3beca6e6..32f3585288 100644
--- a/editor/libeditor/EditorEventListener.cpp
+++ b/editor/libeditor/EditorEventListener.cpp
@@ -238,6 +238,8 @@ EditorEventListener::Disconnect()
void
EditorEventListener::UninstallFromEditor()
{
+ CleanupDragDropCaret();
+
nsCOMPtr<EventTarget> piTarget = mEditorBase->GetDOMEventTarget();
if (!piTarget) {
return;