Skip to content

Commit

Permalink
fix(accordion): type error of open in uncontrolledAccordionProps (#2611)
Browse files Browse the repository at this point in the history
Co-authored-by: illiteratewriter <manukoshyabraham@gmail.com>
  • Loading branch information
razaahmad333 and illiteratewriter committed Oct 12, 2022
1 parent e913779 commit b46a23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/lib/Accordion.d.ts
Expand Up @@ -9,7 +9,7 @@ export interface AccordionProps extends React.HTMLAttributes<HTMLElement> {
open: string | string[];
}

export interface UncontrolledAccordionProps extends AccordionProps {
export interface UncontrolledAccordionProps extends Omit<AccordionProps, 'open'> {
defaultOpen?: string | string[];
stayOpen?: boolean;
}
Expand Down

0 comments on commit b46a23c

Please sign in to comment.