mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 12:28:26 +00:00
fix: set default loading state to false and add aria-label for accessibility in Selectable component
This commit is contained in:
parent
59600e8470
commit
0c80782ced
@ -73,7 +73,7 @@ const Selectable: FC<SelectableProps> = ({
|
||||
placeholder = "",
|
||||
onChange,
|
||||
onSelect,
|
||||
loading,
|
||||
loading = false,
|
||||
}) => {
|
||||
const [text, setText] = useState(defaultValue || "");
|
||||
const editableRef = useRef<HTMLDivElement>(null);
|
||||
@ -218,6 +218,7 @@ const Selectable: FC<SelectableProps> = ({
|
||||
top: "20%",
|
||||
transform: "translateY(-20%)",
|
||||
}}
|
||||
aria-label="loading"
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user