fix: set default loading state to false and add aria-label for accessibility in Selectable component

This commit is contained in:
Aditya 2025-02-12 18:58:17 +05:30
parent 59600e8470
commit 0c80782ced

View File

@ -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
}