Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select option appears selected in IE, but model has a null value #1625

Closed
silvl opened this issue Jun 10, 2019 · 3 comments · Fixed by #1652
Closed

Select option appears selected in IE, but model has a null value #1625

silvl opened this issue Jun 10, 2019 · 3 comments · Fixed by #1652
Labels

Comments

@silvl
Copy link

silvl commented Jun 10, 2019

I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request

Current behavior
On IE, when a select field type is used, the first item in the list appears to be selected but the model does not have a value selected.

Expected behavior
To not show any selection when value not specified in the model

Minimal reproduction of the problem with instructions
This is reproducable using the formly examples provided on the web and running in IE.
https://formly.dev/examples/bootstrap-formly/select

What is the motivation / use case for changing the behavior?

Please tell us about your environment:
IE 11

  • Angular version: Version used with example

  • Browser: IE 11

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

  • Node (for AoT issues): node --version =

@aitboudad aitboudad added the bug label Jun 10, 2019
@silvl
Copy link
Author

silvl commented Jun 11, 2019

As a workaround, if you provide a "placeholder", it will display the placeholder when nothing is selected.

@aitboudad
Copy link
Member

related to angular/angular#10010

@aitboudad
Copy link
Member

fixed in 5.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants