!34920 【RichEditor】修改光标回调中递归修改光标异常问题

Merge pull request !34920 from xuyue/caret2
This commit is contained in:
openharmony_ci 2024-06-05 09:22:26 +00:00 committed by Gitee
commit 9b33b63386
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1471,8 +1471,8 @@ void RichEditorPattern::FireOnSelectionChange(int32_t start, int32_t end)
if (range == lastSelectionRange_) {
return;
}
eventHub->FireOnSelectionChange(&range);
lastSelectionRange_ = std::move(range);
eventHub->FireOnSelectionChange(&range);
}
bool RichEditorPattern::GetCaretVisible() const