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
whenever i changed initial on the basis of my return success failure response then background color change but toggle not change its position. it appears right side always.
initial={isUpdated?1:0}
Toggle changed when we manually click on it if changed during run state changed it only change colors not toggle actually.
The text was updated successfully, but these errors were encountered:
Same error here, even changing initial and value properties with conditional values linked to states, the component don't change selected item visually.
@vinod-sl you are just using normal variable. which runtime change wont affect component. so use state variable like this.
Update both values at same time from state.
Demo
whenever i changed initial on the basis of my return success failure response then background color change but toggle not change its position. it appears right side always.
initial={isUpdated?1:0}
Toggle changed when we manually click on it if changed during run state changed it only change colors not toggle actually.
The text was updated successfully, but these errors were encountered: