Title: Select field in Safari displays option but does not set value when default value is null · Issue #14505 · angular/angular · GitHub
Open Graph Title: Select field in Safari displays option but does not set value when default value is null · Issue #14505 · angular/angular
X Title: Select field in Safari displays option but does not set value when default value is null · Issue #14505 · angular/angular
Description: 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 => Please do not submit support request here, instead see https://github.com/an...
Open Graph Description: 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 => Please do not submit support request...
X Description: 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 => Please do not su...
Opengraph URL: https://github.com/angular/angular/issues/14505
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Select field in Safari displays option but does not set value when default value is null ","articleBody":"**I'm submitting a ...** (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nThis happens with the Internet Explorer and older versions of Firefox (does happen in version 40, does not happen in version 50): When no default value (or explicitly null) is set for a select field's form control, the first option is displayed in the UI but not set as value in the corresponding FormControl. \r\nSide note: Manually selecting the already displayed value does not set the FormControl's value either. To select this option one must first select a different option and then the first one again, only then the value property is correctly set.\r\n\r\n**Expected behavior**\r\nI'd expect the field to be empty initially. If this cannot be done, I'd at least expect the FormControl's value property to be set correctly (reflecting the displayed value).\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nCreate a select field with no default value and view in IE/older Firefox. \r\n[Minimal example](http://plnkr.co/edit/HBjrpCQbYWqSFSykaZaZ?p=preview)\r\n\r\n**Please tell us about your environment:**\r\nTested on Windows 7 and 10 using Chrome 56 and Firefox 50 (behave as expected) and Internet Explorer 11 and Firefox 40 (buggy) \r\n\r\n* **Angular version:** 2.4.7\r\n \r\n* **Language:** TypeScript 2.0.2\r\n","author":{"url":"https://github.com/janaleible","@type":"Person","name":"janaleible"},"datePublished":"2017-02-15T15:56:20Z","url":"https://github.com/angular/angular/issues/14505"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eb9603e7-2d66-fd75-f811-b9ff3c4ce3aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E292:1148D3:1A6C846:21C1395:6B01515E |
| html-safe-nonce | 30c7f3c9be2872c3c43eddd596181bcd205b40d5dd5a518019a52b55f0e65267 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjkyOjExNDhEMzoxQTZDODQ2OjIxQzEzOTU6NkIwMTUxNUUiLCJ2aXNpdG9yX2lkIjoiOTExMzQzNzM2ODU0Njg0MDkyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0fcda8d6762d6c60ca6a52dd9c4e865f8c08ff87fd5714c67034e559b9d43dc1 |
| hovercard-subject-tag | issue:207844800 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/14505/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a180c52256b6a36d8375d32d891ce4c5fb32954124847bcd5dc494822cf16a8/angular/angular/issues/14505 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a180c52256b6a36d8375d32d891ce4c5fb32954124847bcd5dc494822cf16a8/angular/angular/issues/14505 |
| og:image:alt | 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 => Please do not submit support request... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | janaleible |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width