[BUG] TextArea clips first enter/newline after refocus

Version 8.1.47

Scenario:

  1. Type two lines of text into a TextArea
  2. Click outside the TextArea
  3. Click back in the TextArea at the end of the first line, and hit ENTER
  4. Click outside the TextArea or hit ENTER again--either action causes the newline created in step #3 to disappear

I have tried every combination of the deferUpdates and rejectUpdatesWhileFocused properties, but it always behaves like this. The second line of text isn't necessary, it just makes the behavior more obvious. The newline is clipped wherever you type it, so long as either the component loses focus, or the next character typed is also a newline.

A couple more observations:

  • Losing focus does not cause this behavior when done via hitting TAB
  • When rejectUpdatesWhileFocused is False, hitting ENTER twice in a row after refocus not only clips the second newline, but causes the cursor to jump to the end of the text

It also loses focus if you type too fast when defer/reject are disabled (for me anyway) :face_with_diagonal_mouth:

I'm not seeing that in a simple view with just a TextArea. I have seen it clip the last two or three characters when I type too fast in my development views, but those have bindings and change scripts attached so I can't tell if it's a bug in the TextArea itself.