- Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Closed
Copy link
Labels
package: react@ionic/react package@ionic/react packagetype: buga confirmed bug reporta confirmed bug report
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
- Nightly
Current Behavior
When IonRange initially renders with an initial value and dual knobs, the dual knobs will not display with their correct value position. This happens when either setting the value inline, against a variable reference or using useState.
If you cause a re-render of the component, the knobs will render correctly.
Expected Behavior
The dual knobs should render with the values assigned.
Steps to Reproduce
- Open reproduction URL
- Observe: Dual knobs are not displayed (both knobs are
0position) - Click "Cause Re-Render"
- Observe: The two range elements not bound to a state variable are rendered correctly
Code Reproduction URL
https://stackblitz.com/edit/angular-t1fufz?file=src%2Fmain.tsx
Ionic Info
N/A
Additional Information
No response
Metadata
Metadata
Assignees
Labels
package: react@ionic/react package@ionic/react packagetype: buga confirmed bug reporta confirmed bug report