ref in inputProps breaks after updating to 3.3.2
See original GitHub issueI need to get the ref of the typeahead’s input.
In 3.2.4 I used to get it with:
<AsyncTypeahead
{...otherProps}
inputProps={{ ref: this.inputRef }}
/>
After I’ve updated to 3.3.2, I’m getting this error: Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail.
.
What is the proper way to get the input ref?
Isn’t this a break change to bump only the minor version?
Thanks for the library.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
material-ui/core/CHANGELOG.md - UNPKG
We plan to add a deprecation for any breaking change in v5 that allows it. Each warning comes with a simple message that...
Read more >Change Log - Ant Design
Fix Affix throws React warning of state update on unmounted component . ... #18900. Fix title and content of Alert not break line...
Read more >uncaught error: cannot create styled-component for ... - You.com
When importing svg component and trying to style it, i've got error: ... external file, frontend allias export const SvgCircle = forwardRef((props, ref) ......
Read more >react-number-format - NPM Package Overview - Socket - Socket.dev
Through npm npm install react-number-format --save. Or get compiled development and ... suffix, String (ex : /-), none, Add a suffix after the...
Read more >CHANGELOG.md - TINMAN
This is a quick patch after an important regression with the Modal component. ... breaking changes have been done: The usage of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lourenci @k7paul this might be fixed with https://github.com/DefinitelyTyped/DefinitelyTyped/pull/51176 ; if not you probably need to do the same thing for AsyncTypeahead as I did for Typeahead.
@k7paul: It looks like the public methods aren’t present in the types. You or someone else will need to submit a PR adding them.