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
Placeholders are not displayed for ion-select components in certain situations using forms. This began with ba22305 and is due to strict checking the selectText variable.
I haven't yet pinned down the specifics of when this occurs due to time restrictions and complex use of formBuilder which may be a contributing factor. However, I can confirm that specifying a form control with an initial value of 'undefined' ends up with an actual value of type 'null', which prevents the placeholder from being displayed.
Forcing the value to be undefined, with setValue(undefined) on the control enables the placeholder to be shown.
Expected Behavior
The placeholder specified for the ion-select component should be shown when no value is selected.
The text was updated successfully, but these errors were encountered:
Thanks for the issue! I pushed a fix to change our checks from === undefined to == null. I believe this should fix the problem but if you are able to provide a way for us to reproduce this for you I can be certain of it.
If it is still an issue in 4.0.0-beta.12 I will reopen this. Thank you!
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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
Placeholders are not displayed for ion-select components in certain situations using forms. This began with ba22305 and is due to strict checking the selectText variable.
I haven't yet pinned down the specifics of when this occurs due to time restrictions and complex use of formBuilder which may be a contributing factor. However, I can confirm that specifying a form control with an initial value of 'undefined' ends up with an actual value of type 'null', which prevents the placeholder from being displayed.
Forcing the value to be undefined, with setValue(undefined) on the control enables the placeholder to be shown.
Expected Behavior
The placeholder specified for the ion-select component should be shown when no value is selected.
The text was updated successfully, but these errors were encountered: