From a7474d7fc4ad5b2a6c83e225f6832ff6bb0106ce Mon Sep 17 00:00:00 2001 From: Wren Date: Wed, 16 Jul 2025 22:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/ui/MultiCascader.tsx | 12 ++++++++++-- app/routes/cross-checking.upload.tsx | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/components/ui/MultiCascader.tsx b/app/components/ui/MultiCascader.tsx index e40bea0..9d57164 100644 --- a/app/components/ui/MultiCascader.tsx +++ b/app/components/ui/MultiCascader.tsx @@ -131,7 +131,7 @@ const MultiCascader: React.FC = ({ toggleExpand(option.value); }} > - {isExpanded ? '▼' : '▶'} + )} @@ -151,7 +151,15 @@ const MultiCascader: React.FC = ({ return (
{ + if (e.key === 'Enter' || e.key === ' ') { + e.preventDefault(); + setVisible(!visible); + } + }} onClick={() => setVisible(!visible)} > diff --git a/app/routes/cross-checking.upload.tsx b/app/routes/cross-checking.upload.tsx index 258b5c1..ff7c69b 100644 --- a/app/routes/cross-checking.upload.tsx +++ b/app/routes/cross-checking.upload.tsx @@ -386,7 +386,7 @@ const TreeNodeCheckbox: React.FC<{ onKeyDown={e => (e.key === 'Enter' || e.key === ' ') && setExpanded(e => !e)} style={{ width: 16, display: "inline-block", textAlign: "center" }} > - {expanded ? "▼" : "▶"} + )}