mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 12:59:14 +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 = "",
|
placeholder = "",
|
||||||
onChange,
|
onChange,
|
||||||
onSelect,
|
onSelect,
|
||||||
loading,
|
loading = false,
|
||||||
}) => {
|
}) => {
|
||||||
const [text, setText] = useState(defaultValue || "");
|
const [text, setText] = useState(defaultValue || "");
|
||||||
const editableRef = useRef<HTMLDivElement>(null);
|
const editableRef = useRef<HTMLDivElement>(null);
|
||||||
@ -218,6 +218,7 @@ const Selectable: FC<SelectableProps> = ({
|
|||||||
top: "20%",
|
top: "20%",
|
||||||
transform: "translateY(-20%)",
|
transform: "translateY(-20%)",
|
||||||
}}
|
}}
|
||||||
|
aria-label="loading"
|
||||||
/>
|
/>
|
||||||
) : null
|
) : null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user