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
Describe the Bug
The ion-select component on a reactive form does not work correctly with form.patchValue. After a patch, sometimes the ion-select shows the value selected and sometimes it doesn't.
Steps to Reproduce
Steps to reproduce the behavior:
It's difficult to reproduce this consistently. I found the best way was to simply refresh the page over and over again until ion-select doesn't display a value.
Expected Behavior
The ion-select component displays a value after form.patchValue
Additional Context
With a small list like this example 1 out of ~30 page refreshes resulted in this behavior. With larger lists and doing the patch in an observable subscribe failed 1 out of 3 times.
It appears to be a race condition issue. If I wrap the patch in a short delay the ion-select displays correctly every time. e.g.
Thanks for the issue! This issue is being closed due to the lack of a reply. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic Info
Describe the Bug
The ion-select component on a reactive form does not work correctly with form.patchValue. After a patch, sometimes the ion-select shows the value selected and sometimes it doesn't.
Steps to Reproduce
Steps to reproduce the behavior:
Expected Behavior
The ion-select component displays a value after form.patchValue
Additional Context
With a small list like this example 1 out of ~30 page refreshes resulted in this behavior. With larger lists and doing the patch in an observable subscribe failed 1 out of 3 times.
It appears to be a race condition issue. If I wrap the patch in a short delay the ion-select displays correctly every time. e.g.
The text was updated successfully, but these errors were encountered: