(mobile) Keyboard stays covering half of the page until HTTP response arrives #57

Closed
opened 2026-02-17 23:33:18 +00:00 by aniram · 2 comments
Owner
No description provided.
Author
Owner

It was fixed by calling document.activeElement.blur which removes the focus from who has it currently, so the keyboard.
This fixed the issue on Safari/Chrome iOS but not Firefox iOS. I had to add a setTimeout of 10ms in order to make Firefox only change the focus after the form has been actually submitted otherwise how could it dismiss the focus of something that still needed it?

It was fixed by calling **document.activeElement.blur** which removes the focus from who has it currently, so the keyboard. This fixed the issue on Safari/Chrome iOS but not Firefox iOS. I had to add a **setTimeout** of 10ms in order to make Firefox only change the focus after the form has been actually submitted otherwise how could it dismiss the focus of something that still needed it?
Author
Owner

I said the "fix" but this is normal browser behavior.

I said the "fix" but this is normal browser behavior.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aniram/cidadon#57
No description provided.