Skip to content

Commit

Permalink
Always forward provided onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jul 1, 2023
1 parent bafd5cc commit c4ece30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const TextareaAutosize: React.ForwardRefRenderFunction<
return <textarea {...props} onChange={handleChange} ref={ref} />;
}

return <textarea {...props} ref={ref} />;
return <textarea {...props} onChange={onChange} ref={ref} />;
};

export default /* #__PURE__ */ React.forwardRef(TextareaAutosize);

0 comments on commit c4ece30

Please sign in to comment.