Skip to content

Commit a3c3f60

Browse files
committed
react(TextArea): forward props.onChange in ControlledTextArea to allow Storybook Actions logging
1 parent e64f2bc commit a3c3f60

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/design-system-react/src/components/TextArea/TextArea.stories.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ function ControlledTextArea(props: TextAreaProps) {
1616
<TextArea
1717
{...props}
1818
value={value}
19-
onChange={(event) => setValue(event.target.value)}
19+
onChange={(event) => {
20+
setValue(event.target.value);
21+
props.onChange?.(event);
22+
}}
2023
/>
2124
);
2225
}

0 commit comments

Comments
 (0)