fix: web, reset cursor on disconn, back to main page (#9192)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2024-08-27 23:58:04 +08:00
committed by GitHub
parent fd178a7b6c
commit cf06d1028f
4 changed files with 9 additions and 1 deletions

View File

@@ -784,7 +784,7 @@ class InputModel {
if (!isInputSourceFlutter) {
bind.sessionEnterOrLeave(sessionId: sessionId, enter: enter);
}
if (enter) {
if (!isWeb && enter) {
bind.setCurSessionId(sessionId: sessionId);
}
}