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
No overload matches this call.
Overload 1 of 2, '(props: ButtonProps): Button', gave the following error.
Type 'RefObject<HTMLElement | HTMLButtonElement>' is not assignable to type 'LegacyRef<Button> | undefined'.
Type 'RefObject<HTMLElement | HTMLButtonElement>' is not assignable to type 'RefObject<Button>'.
Type 'HTMLElement | HTMLButtonElement' is not assignable to type 'Button'.
Type 'HTMLElement' is missing the following properties from type 'Component<ButtonProps, any, any>': context, setState, forceUpdate, render, and 3 more.
Overload 2 of 2, '(props: ButtonProps, context: any): Button', gave the following error.
Type 'RefObject<HTMLElement | HTMLButtonElement>' is not assignable to type 'LegacyRef<Button> | undefined'.(2769)
index.d.ts(303, 9): The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<Button> & Readonly<ButtonProps>'
index.d.ts(303, 9): The expected type comes from property 'ref' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<Button> & Readonly<ButtonProps>'
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
Typescript
Issue or pull request is *only* related to TypeScript definition
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Type: Bug
Issue contains a defect related to a specific component.
labels
Sep 26, 2024
Describe the bug
In sidebar headless version,
closeIconRef
parameter shows an error in Typescript even in the demoI didn't find any solution to this
PrimeReact Sidebar headless URL https://primereact.org/sidebar/#headless
Reproducer
https://stackblitz.com/run?file=src%2FApp.tsx
System Information
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: