iOS - cursor hidden when editing on screen keyboard appears #3360
Labels
Mobile Web
Viewport sizes for mobile and tablet devices
[Type] Bug
An existing feature does not function as intended
Milestone
Issue Overview
When I tap on a paragraph block at the bottom of the viewport (where the on screen keyboard will appear) the page isn't scrolled so the cursor is hidden. Requires a HTML or Code block to be in the Post also (or any block rendering a TextareaAutosize.
Steps to Reproduce (for bugs)
iOS (device or simulator)
Expected Behavior
Page is scrolled so that cursor is visible
Current Behavior
Page isn't scrolled and keyboard hides cursor
Possible Solution
This is an issue in
react-autosize-textarea
wherethis.currentValue
is not initialised socomponentDidUpdate
dispatches an un-necessary update event (https://github.com/buildo/react-autosize-textarea/blob/master/src/TextareaAutosize.js#L108).Correcting this would fix the immediate issue but leaves 2 more...
Firstly the Toolbar will now scroll offscreen when the on screen keyboard appears. (TinyMCE mobile hit the same issue but the solution was complex)
Secondly when the content of a
TextareaAutosize
is changed it scrolls the page as well, in the same way that is exhibited in this issue (the un-necessary update event).I will investigate more in the
autosize
library thatTextareaAutosize
uses to see if a fix can be found.Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: