Title: Created "null" option into select ng-options sets to false when other option is clicked · Issue #16917 · angular/angular.js · GitHub
Open Graph Title: Created "null" option into select ng-options sets to false when other option is clicked · Issue #16917 · angular/angular.js
X Title: Created "null" option into select ng-options sets to false when other option is clicked · Issue #16917 · angular/angular.js
Description: I'm submitting a ... regression from 1.7.0 security issue issue caused by a new browser version other Current behavior: Entering a page which has an hardcoded option with null value gets the parameter selected="false" and creating proble...
Open Graph Description: I'm submitting a ... regression from 1.7.0 security issue issue caused by a new browser version other Current behavior: Entering a page which has an hardcoded option with null value gets the parame...
X Description: I'm submitting a ... regression from 1.7.0 security issue issue caused by a new browser version other Current behavior: Entering a page which has an hardcoded option with null value gets the pa...
Opengraph URL: https://github.com/angular/angular.js/issues/16917
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Created \"null\" option into select ng-options sets to false when other option is clicked","articleBody":"**I'm submitting a ...**\r\n- [ ] regression from 1.7.0\r\n- [ ] security issue\r\n- [ ] issue caused by a new browser version\r\n- [x] other \u003c!--(Please do not submit support requests here - see above)--\u003e\r\n\r\n**Current behavior:**\r\nEntering a page which has an hardcoded option with null value gets the parameter `selected=\"false\"` and creating problems on Chrome when new data is put on the object supplied in ng-options.\r\n\r\n**Expected / new behavior:**\r\nThe parameter `selected=\"false\"` could be dropped when not selected. When selected, could just be `selected`\r\nThis was fixed in [https://github.com/angular/angular.js/commit/27486bd15e70946ece2ba713e4e8654b7f9bddad](url) but looks like is not used on select options.\r\n\r\n**Minimal reproduction of the problem with instructions:**\r\nOn this example [plunkr](https://plnkr.co/edit/2H6bbXDP2iWt7rz3GhcF?p=preview), the default option can be left as is, then by clicking on the button \"add\", on Chrome only, the select box will change to the option called \"none\". On Firefox, only page source is changed.\r\n\r\n**AngularJS version:**\r\n1.7.8\r\n\r\n**Browser:** \r\nChrome 78.0.3904.97 (64 bit) (select button displays wrong data)\r\nFirefox 68.2.0esr (64-bit) (only visible on page source, rendered select box keeps the same)\r\n(both running in Debian 9)\r\n\r\n**Anything else:**\r\nUsing jquery 2.2.4\r\nCould be related with [https://github.com/angular/angular.js/issues/16916](url) due to ambiguity of the selected option which should be displayed.\r\n","author":{"url":"https://github.com/mjmlopes","@type":"Person","name":"mjmlopes"},"datePublished":"2019-11-18T18:11:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/16917/angular.js/issues/16917"}
| 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:590c558d-2ca4-66e1-8b14-044a54450782 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D696:15B1C2:9444C15:C4E2280:696E0D1D |
| html-safe-nonce | fca293a6ff572170793f6cbd226c666366234b9c340be0f81b1496d4d5bc3468 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjk2OjE1QjFDMjo5NDQ0QzE1OkM0RTIyODA6Njk2RTBEMUQiLCJ2aXNpdG9yX2lkIjoiMTY0MTk4NzcwMTQ5OTM2NjY4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b0d6f9ca6c1c7a67d5530ad2fdbf996c8f075c0a8a63b77e56c8b8018aec25a0 |
| hovercard-subject-tag | issue:524531496 |
| 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.js/16917/issue_layout |
| twitter:image | https://opengraph.githubassets.com/44ca709950634eb575ad632f1f9d9ce13e17a53d4db7d8a5e06dd0dca7174843/angular/angular.js/issues/16917 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/44ca709950634eb575ad632f1f9d9ce13e17a53d4db7d8a5e06dd0dca7174843/angular/angular.js/issues/16917 |
| og:image:alt | I'm submitting a ... regression from 1.7.0 security issue issue caused by a new browser version other Current behavior: Entering a page which has an hardcoded option with null value gets the parame... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjmlopes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0b1760aa20e1a810eba6245d04e3885be7363dfe08d08b61f605c852359472e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular.js git https://github.com/angular/angular.js.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 460078 |
| octolytics-dimension-repository_nwo | angular/angular.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 460078 |
| octolytics-dimension-repository_network_root_nwo | angular/angular.js |
| 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 | 84090305cd10c2b140bf307f69f57f0892b4f215 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width