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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
}
}