mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 11:57:32 +09:00
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>
This commit is contained in:
parent
1644bf94f0
commit
cc6b0f11e7
5 changed files with 66 additions and 0 deletions
|
|
@ -238,6 +238,8 @@ EditorEventListener::Disconnect()
|
|||
void
|
||||
EditorEventListener::UninstallFromEditor()
|
||||
{
|
||||
CleanupDragDropCaret();
|
||||
|
||||
nsCOMPtr<EventTarget> piTarget = mEditorBase->GetDOMEventTarget();
|
||||
if (!piTarget) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue