mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
opentui: fix: Dialog button clicks leak through (#3589)
This commit is contained in:
parent
4acd7d83f0
commit
8033b4e929
3 changed files with 2 additions and 3 deletions
|
|
@ -8,7 +8,6 @@ import {
|
|||
createEffect,
|
||||
untrack,
|
||||
ErrorBoundary,
|
||||
createMemo,
|
||||
createSignal,
|
||||
} from "solid-js"
|
||||
import { Installation } from "@/installation"
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export function DialogAlert(props: DialogAlertProps) {
|
|||
paddingLeft={3}
|
||||
paddingRight={3}
|
||||
backgroundColor={theme.primary}
|
||||
onMouseDown={() => {
|
||||
onMouseUp={() => {
|
||||
props.onConfirm?.()
|
||||
dialog.clear()
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export function DialogConfirm(props: DialogConfirmProps) {
|
|||
paddingLeft={1}
|
||||
paddingRight={1}
|
||||
backgroundColor={key === store.active ? theme.primary : undefined}
|
||||
onMouseDown={() => {
|
||||
onMouseUp={(evt) => {
|
||||
if (key === "confirm") props.onConfirm?.()
|
||||
if (key === "cancel") props.onCancel?.()
|
||||
dialog.clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue