react-semantic-ui-datepickers icon indicating copy to clipboard operation
react-semantic-ui-datepickers copied to clipboard

Make it work with react-semantic-ui v.3

Open avsd opened this issue 1 year ago • 0 comments

🐛 bug report

Description of the problem

When using the next version of react-semantic-ui, v3.0.0-beta.0, this package stops working because it is using the deprecated Ref mechanism that was dropped from react-semantic-ui.

How has this issue affected you? What are you trying to accomplish?

Developing the project using beta version of react-semantic-ui, and the latest version of React (18).

Solution

Replace <Ref> mechanism with a new approach (passing ref as a prop to the Input), and make sure both old and new approaches work (depending on the version of react-semantic-ui).

Pull request

https://github.com/arthurdenner/react-semantic-ui-datepickers/pull/840/files

avsd avatar Mar 21 '23 19:03 avsd