And another necessary condition is, the text control frame should be dirty at dispatching the `input` event. After dispatching `beforeinput` nor `textInput` event, it seems that `TextEditor` does not flush the layout. So, I guessed that `beforeinput` or `textInput` listener can make the frame dirty. Then, `TextEditor` fails to update the state before dispatching `input` event. However, I cannot reproduce this bug with [this simplest testcase](https://jsfiddle.net/d_toybox/60bhreny/). So, I'm still missing something...
Bug 1989331 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
And another necessary condition is, the text control frame should be dirty at dispatching the `input` event. After dispatching `beforeinput` nor `textInput` event, it seems that `TextEditor` does not flush the layout. So, I guessed that `beforeinput` or `textInput` listener can make the frame dirty. Then, `TextEditor` fails to update the state before dispatching `input` event. However, I cannot reproduce this bug with [this simplest testcase](https://jsfiddle.net/d_toybox/60bhreny/1/). So, I'm still missing something...