react-semantic-ui-datepickers
react-semantic-ui-datepickers copied to clipboard
Make it work with react-semantic-ui v.3
🐛 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