exp/textinput: bug fix: inputting words doesn't work correctly on Android

This commit is contained in:
Hajime Hoshi 2024-02-04 14:28:53 +09:00
parent 60673752a1
commit e3b54b41c2

View File

@ -99,7 +99,7 @@ func (t *textInput) init() {
t.trySend(true)
return nil
}
if e.Get("data").Equal(js.Null()) {
if e.Get("inputType").String() == "insertText" && e.Get("data").Equal(js.Null()) {
// When a new line is inserted, the 'data' property might be null.
t.trySend(true)
return nil