diff --git a/src/codec-components/EditCodec/CAccountId.tsx b/src/codec-components/EditCodec/CAccountId.tsx index b288ebf..ae5fbf3 100644 --- a/src/codec-components/EditCodec/CAccountId.tsx +++ b/src/codec-components/EditCodec/CAccountId.tsx @@ -80,9 +80,15 @@ export const CAccountId: EditAccountId = ({ value, onValueChanged }) => { ) } + const onTriggerKeyDown = (evt: React.KeyboardEvent) => { + if (evt.key.length === 1) { + setOpen(true) + } + } + return ( - + + {error &&

{error}

} ) diff --git a/src/components/ButtonGroup.tsx b/src/components/ButtonGroup.tsx index 6a047b9..0754970 100644 --- a/src/components/ButtonGroup.tsx +++ b/src/components/ButtonGroup.tsx @@ -17,7 +17,7 @@ export const ButtonGroup: FC<{ type="single" value={value} onValueChange={(v) => v && onValueChange(v)} - className="inline-flex border border-primary bg-background text-foreground" + className="inline-flex border border-accent bg-background text-foreground" > {items.map(({ value, content, disabled }) => ( ({ }) => { const [open, setOpen] = useState(false) + const onTriggerKeyDown = (evt: React.KeyboardEvent) => { + if (evt.key.length === 1) { + setOpen(true) + } + } + return ( - +