fix(TUI): dont submit prompt when switching sessions (#8016)
This commit is contained in:
@@ -158,7 +158,8 @@ export function DialogSelect<T>(props: DialogSelectProps<T>) {
|
|||||||
if (evt.name === "return") {
|
if (evt.name === "return") {
|
||||||
const option = selected()
|
const option = selected()
|
||||||
if (option) {
|
if (option) {
|
||||||
// evt.preventDefault()
|
evt.preventDefault()
|
||||||
|
evt.stopPropagation()
|
||||||
if (option.onSelect) option.onSelect(dialog)
|
if (option.onSelect) option.onSelect(dialog)
|
||||||
props.onSelect?.(option)
|
props.onSelect?.(option)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user