Skip to content

Commit dcec04d

Browse files
committed
Update console-sheet.js
1 parent 8fc18be commit dcec04d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

live-view/extensions/mobile-console/console-sheet.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,18 @@ class ConsoleSheet {
696696
if (document.activeElement === input &&
697697
keyboardHeight === 0) {
698698

699-
input.blur();
699+
onNextFrame(() => {
700+
701+
keyboardHeight = navigator.virtualKeyboard.boundingRect.height;
702+
703+
if (document.activeElement === input &&
704+
keyboardHeight === 0) {
705+
706+
input.blur();
707+
708+
}
709+
710+
});
700711

701712
}
702713

0 commit comments

Comments
 (0)