diff --git a/exp/textinput/textinput_js.go b/exp/textinput/textinput_js.go index e1141f2d5..8e3bda656 100644 --- a/exp/textinput/textinput_js.go +++ b/exp/textinput/textinput_js.go @@ -99,6 +99,11 @@ func (t *textInput) init() { t.trySend(true) return nil } + if e.Get("data").Equal(js.Null()) { + // When a new line is inserted, the 'data' property might be null. + t.trySend(true) + return nil + } t.trySend(false) return nil }))