-
-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update react refs to use callback instead of strings #212
Conversation
move saveRef to utils and use anywhere we want to save a ref;
This is a vital PR that unblocks devs that are using React 16, along with react-component/calendar#282 and react-component/trigger#63 @afc163 can we please get these merged asap? |
firstActiveValue
Hello @coderpawz, could you rebase master, then i will merge this. |
move saveRef to utils and use anywhere we want to save a ref;
fix conflict in DropdownMenu
hi @yesmeck, all done, thanks! |
@yesmeck @coderpawz It seems this got out of sync with master again after it was rebased last time. Can one of you pls rebase and merge when you have a chance? |
Need to rebase again.. |
@coderpawz can you please rebase when you have a chance? Need this in |
As of React v16 using strings to create refs will no longer work. This is is forward looking change to address future compatibility issues as well as fixing existing deprecation warning thrown by react v15.
For consistency, also moved saveRef from Select.jsx to utils.js
For more info on refs, see https://facebook.github.io/react/docs/refs-and-the-dom.html