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
I have read-only input number. Read-only inputs shouldn't be editable. But in this case PrimeReact allows me to edit values in read-only input number. Codesandbox is below.
Current behavior
Read-only input number is editable. I tried to make read-only input number in your Codesandbox in demo. Forked Codesendox is above.
Expected behavior
Read-only input automatically shouldn't be editable and shouldn't allow to change data by the user, but should allow to change value by setState etc. by other functions in my components.
Minimal reproduction of the problem with instructions
Create statefull component containing InputNumber with readOnly prop.
Please tell us about your environment:
W10, Chrome, Opera, Edge...
React version:
17.0.2
PrimeReact version:
6.4.1 (but in Codesandbox is 6.5.0 and issue is still there)
Language: all
The text was updated successfully, but these errors were encountered:
danieldvorak
changed the title
ReadOnly InputNumber is editable
[Bug]: ReadOnly InputNumber is editable
Sep 2, 2021
I have read-only input number. Read-only inputs shouldn't be editable. But in this case PrimeReact allows me to edit values in read-only input number. Codesandbox is below.
[ ] bug report
ReadOnly InputNumber is editable.
[ ] feature request
ReadOnly InputNumber shouldn't be editable in no situations.
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/recursing-night-rc3cy
Current behavior
Read-only input number is editable. I tried to make read-only input number in your Codesandbox in demo. Forked Codesendox is above.
Expected behavior
Read-only input automatically shouldn't be editable and shouldn't allow to change data by the user, but should allow to change value by setState etc. by other functions in my components.
Minimal reproduction of the problem with instructions
Create statefull component containing InputNumber with readOnly prop.
Please tell us about your environment:
W10, Chrome, Opera, Edge...
React version:
17.0.2
PrimeReact version:
6.4.1 (but in Codesandbox is 6.5.0 and issue is still there)
Language: all
The text was updated successfully, but these errors were encountered: