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