Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit d72f03a

Browse files
committed
fix(packages/core): in-repl inputs should remain disabled in bottom input mode
Fixes #3522
1 parent 45d2975 commit d72f03a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/core/src/webapp/listen.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ export const listen = (prompt: HTMLInputElement) => {
9292
const bottomPrompt = getBottomPrompt()
9393
bottomPrompt.readOnly = false
9494
bottomPrompt.tabIndex = 1
95+
prompt.readOnly = true
96+
} else {
97+
prompt.readOnly = false
98+
prompt.placeholder = promptPlaceholder
99+
prompt.tabIndex = 1
95100
}
96-
prompt.readOnly = false
97-
prompt.placeholder = promptPlaceholder
98-
prompt.tabIndex = 1
99101

100102
const grandparent = prompt.parentNode.parentNode as Element
101103
grandparent.className = `${grandparent.getAttribute('data-base-class')} repl-active`

0 commit comments

Comments
 (0)