fix(local-tool): 載入模型 dialog 點灰色區域不再關閉
使用者回報點 dialog 周圍灰色 overlay 會誤關 popup。 修法:flash-dialog 的 DialogContent 加: - onInteractOutside: 永遠 preventDefault(灰色區域點擊不關) - onEscapeKeyDown: 載入中 preventDefault(載入完成後可 Esc 關) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
db272cac5a
commit
372259b4b1
@ -79,7 +79,7 @@ export function FlashDialog({ deviceId }: FlashDialogProps) {
|
|||||||
<DialogTrigger asChild>
|
<DialogTrigger asChild>
|
||||||
<Button data-tour-id="flash-model-btn">載入模型</Button>
|
<Button data-tour-id="flash-model-btn">載入模型</Button>
|
||||||
</DialogTrigger>
|
</DialogTrigger>
|
||||||
<DialogContent>
|
<DialogContent onInteractOutside={(e) => e.preventDefault()} onEscapeKeyDown={(e) => { if (isInProgress) e.preventDefault(); }}>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>載入模型到裝置</DialogTitle>
|
<DialogTitle>載入模型到裝置</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user