Skip to content

Commit

Permalink
accordion: rm useId fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Feb 19, 2020
1 parent fcce7e1 commit 4ee37a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/accordion/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const Accordion = forwardRef<HTMLDivElement, AccordionProps>(
DescendantProps
>();

const id = useId(props.id) || "accordion";
const id = useId(props.id);

// Define our default starting index
const [openPanels, setOpenPanels] = useState<AccordionIndex>(() => {
Expand Down

0 comments on commit 4ee37a5

Please sign in to comment.