You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error TS2322: Type '{ children: string; onClick: () => void; onKeyDown: (e: KeyboardEvent<HTMLAnchorElement>) =>
void; tabIndex: number; role: string; ref: RefObject<HTMLAnchorElement>; type: "button"; }' is not assignable to type 'DetailedHTMLProps<ButtonHTMLAttr
ibutes<HTMLButtonElement>, HTMLButtonElement>'.
Type '{ children: string; onClick: () => void; onKeyDown: (e: KeyboardEvent<HTMLAnchorElement>) => void; tabIndex: number; role: string; ref: RefObjec
t<HTMLAnchorElement>; type: "button"; }' is not assignable to type 'ClassAttributes<HTMLButtonElement>'.
Types of property 'ref' are incompatible.
Type 'RefObject<HTMLAnchorElement>' is not assignable to type 'LegacyRef<HTMLButtonElement> | undefined'.
Type 'RefObject<HTMLAnchorElement>' is not assignable to type 'RefObject<HTMLButtonElement>'.
Type 'HTMLAnchorElement' is missing the following properties from type 'HTMLButtonElement': disabled, form, formAction, formEnctype, and 11 mo
re.
It's currently disabled by disabling the linter (yech!) like so:
Thanks, sorry I missed the open issue. I'd love to promise to submit a PR, but in all honesty it will probably be buried under all my other good intentions.
Thanks for the accessible component! I have a problem when I'm using a button for the items, for example when looping through the items:
Our Typescript complains about the following:
It's currently disabled by disabling the linter (yech!) like so:
But I'd like to do this cleanly. Any advice would be greatly appreciated.
The text was updated successfully, but these errors were encountered: