fix RichTextField text replace

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-12 11:32:26 +08:00
parent f97d0c8ed0
commit f37e332de9
2 changed files with 32 additions and 22 deletions

View File

@@ -332,8 +332,8 @@ abstract class CommonRichTextPubPageState<T extends CommonRichTextPubPage>
_onInsertUser(res, fromClick);
} else if (res is Set<MentionItem>) {
for (final e in res) {
e.checked = false;
_onInsertUser(e, fromClick);
_onInsertUser(e..checked = false, fromClick);
fromClick = true;
}
res.clear();
}