We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc67d8 commit 21f279dCopy full SHA for 21f279d
src/Accordion.tsx
@@ -61,7 +61,7 @@ export const Accordion = memo(
61
62
const value = expandedProp ? expandedProp : expandedState;
63
64
- const handleChange = useConstCallback(
+ const onExtendButtonClick = useConstCallback(
65
(event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
66
setExpandedState(!value);
67
if (onExpandedChange) {
@@ -77,7 +77,7 @@ export const Accordion = memo(
77
className={fr.cx("fr-accordion__btn")}
78
aria-expanded={value}
79
aria-controls={`accordion-${id}`}
80
- onClick={handleChange}
+ onClick={onExtendButtonClick}
81
>
82
{label}
83
</button>
0 commit comments