You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Current behavior
I've upgraded from version 5.0.2 to primereact 6.0.2 and a reference I've set in an inputtext component is no longer working, as you can see in codesandbox. It fires the error below in console:
Warning: Failed prop type: Invalid prop `forwardRef` of type `object` supplied to `InputTextComponent`, expected `function`. in InputTextComponent (created by ForwardRef)
in ForwardRef (created by App)
in App
Expected behavior
I was expecting this reference to work in order to be able to focus an input after setstate was fired. It was properly working before the upgrade, now the reference is missing and this error breakes all my Jest tests.
Minimal reproduction of the problem with instructions
Defining a reference using something like referenceVariable = createRef() and adding a property ref={referenceVariable} will fire up this error in primereact 6.0.2. I've tried it among different node versions, like 10, 14 and 15.
Please tell us about your environment:
I'm running MacOS BigSur, with Yarn, Webpack and ruby on rails and Puma webserver. But this error was easily reproduced in codesandbox.
React version:
16.14.0
PrimeReact version:
6.0.2
Browser: Chrome
Language: ES6/7
The text was updated successfully, but these errors were encountered:
I'm submitting a ...
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-test-forked-hszlq
Current behavior
I've upgraded from version 5.0.2 to primereact 6.0.2 and a reference I've set in an inputtext component is no longer working, as you can see in codesandbox. It fires the error below in console:
Expected behavior
I was expecting this reference to work in order to be able to focus an input after setstate was fired. It was properly working before the upgrade, now the reference is missing and this error breakes all my Jest tests.
Minimal reproduction of the problem with instructions
Defining a reference using something like referenceVariable = createRef() and adding a property ref={referenceVariable} will fire up this error in primereact 6.0.2. I've tried it among different node versions, like 10, 14 and 15.
Please tell us about your environment:
I'm running MacOS BigSur, with Yarn, Webpack and ruby on rails and Puma webserver. But this error was easily reproduced in codesandbox.
React version:
16.14.0
PrimeReact version:
6.0.2
Browser: Chrome
Language: ES6/7
The text was updated successfully, but these errors were encountered: