diff options
author | Job Bautista <jobbautista9@protonmail.com> | 2023-02-09 20:51:34 +0800 |
---|---|---|
committer | Job Bautista <jobbautista9@protonmail.com> | 2023-02-09 20:51:34 +0800 |
commit | 42742eceae3cd56c2fdee9ec598253cd3d886ee6 (patch) | |
tree | 20bfb9ff6d039dc5e5bf064f33c7bb08b392a34e /editor | |
parent | ffdba3d91e0ca7df003a97f564451fb0ae97fa8e (diff) | |
download | uxp-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.cpp | 2 |
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; |