react-composition-input icon indicating copy to clipboard operation
react-composition-input copied to clipboard

Support custom component (e.g. textarea)

Open kevinresol opened this issue 6 years ago • 2 comments

Also allow ref to the actual DOM element (via inputRef)

kevinresol avatar Jan 13 '20 05:01 kevinresol

Good idea about this one. But I'm considering it strange that the component name is react-composition-input but we create a textarea. How about creating a HOC component so we can provide attributes and callback for handling child component? But in this way it is not easy to use.

Maybe I will merge it in a few weeks.

LeoEatle avatar Jan 15 '20 06:01 LeoEatle

"input" doesn't necessarily refer to the DOM element. Generally speaking, textarea is also an input.

kevinresol avatar Jan 15 '20 14:01 kevinresol