-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
component: mobileissue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Milestone
Description
Describe the bug
Touching a text field on iPad while external keyboard is connected causes the field to immediately lose focus making editing impossible.
A workaround is making Blockly.utils.userAgent.IPAD true by, for instance, turning the Safari setting "Request Desktop Website" off or setting it manually. A prompt then opens instead of the inline editor and editing is possible. (Blockly.utils.userAgent.IPAD is false on iPad due to the user agent string sent from Safari on iPad.)
To Reproduce
- Open Safari on iPad with external keyboard connected
- Go to https://blockly-demo.appspot.com/static/demos/fixed/index.html
- Touch a block's text field
- The field receives focus and then immediately loses it
Expected behavior
The text field should keep focus after touch.
Smartphone:
- Device: iPad (8th generation)
- OS: 14.4
- Browser: Safari
- Version: 14.0.3
- User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: mobileissue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong