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
Specifying the prop maxlength of <Spinner /> will cause errors/crashes.
Expected behavior
Expected component not to crash and to update its value.
Minimal reproduction of the problem with instructions
Specify the maxlength prop of <Spinner /> and the component will no longer work.
The issue is happening because of the following line of code:
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://plnkr.co/edit/ffyN77iR3t3j4utIGfGh?p=preview
Current behavior
Specifying the prop
maxlength
of<Spinner />
will cause errors/crashes.Expected behavior
Expected component not to crash and to update its value.
Minimal reproduction of the problem with instructions
Specify the
maxlength
prop of<Spinner />
and the component will no longer work.The issue is happening because of the following line of code:
primereact/src/components/spinner/Spinner.js
Line 106 in e879098
this.value.toString()
should be replaced bythis.props.value.toString()
.See the console ouput in Plunkr: https://plnkr.co/edit/ffyN77iR3t3j4utIGfGh?p=preview
React version:
16.8.2
PrimeReact version:
3.1.0
Browser:
all
Language:
all
The text was updated successfully, but these errors were encountered: