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 ? "▼" : "▶"} + )}