Skip to content

Commit fad95a8

Browse files
committed
Update console-sheet.js
1 parent 049c9a9 commit fad95a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,12 @@ class ConsoleSheet {
692692

693693
let keyboardHeight = e.target.boundingRect.height;
694694

695+
if (document.activeElement !== input) {
696+
697+
keyboardHeight = 0;
698+
699+
}
700+
695701
body.style.setProperty('--keyboard-height', keyboardHeight + 'px');
696702

697703

0 commit comments

Comments
 (0)