Change the way react-input-trigger receives/sets the ref to the input or textarea component.
This change is introduced [after #10, #12] in order to offer wider support to projects using component libraries for their form input fields.
What changes
It's now mandatory for the consumer of react-input-trigger to pass the ref to the underlying input component - as opposed to react-input-trigger cloning the children and setting the ref.
Additional benefits
No cloning children - children can be any React component & no loss of lifecycle hooks.
Fix: Ref handling for wider support
Change the way
react-input-trigger
receives/sets the ref to theinput
ortextarea
component. This change is introduced [after #10, #12] in order to offer wider support to projects using component libraries for their form input fields.What changes
It's now mandatory for the consumer of
react-input-trigger
to pass the ref to the underlying input component - as opposed toreact-input-trigger
cloning the children and setting the ref.Additional benefits