René's URL Explorer Experiment


Title: ngChange handler called, on submit, for blank type="number" fields, when they haven't changed · Issue #17181 · angular/angular.js · GitHub

Open Graph Title: ngChange handler called, on submit, for blank type="number" fields, when they haven't changed · Issue #17181 · angular/angular.js

X Title: ngChange handler called, on submit, for blank type="number" fields, when they haven't changed · Issue #17181 · angular/angular.js

Description: I suppose this doesn't meet the LTS definition of a critical bug. But I am going to file it here in case it is - at the very least - helpful to other people. I spent a lot of time tracking down this issue. It's confusing and non-obvious ...

Open Graph Description: I suppose this doesn't meet the LTS definition of a critical bug. But I am going to file it here in case it is - at the very least - helpful to other people. I spent a lot of time tracking down thi...

X Description: I suppose this doesn't meet the LTS definition of a critical bug. But I am going to file it here in case it is - at the very least - helpful to other people. I spent a lot of time tracking down...

Opengraph URL: https://github.com/angular/angular.js/issues/17181

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ngChange handler called, on submit, for blank type=\"number\" fields, when they haven't changed","articleBody":"I suppose this doesn't meet the LTS definition of a critical bug.\r\nBut I am going to file it here in case it is - at the very least - helpful to other people.\r\n\r\nI spent a lot of time tracking down this issue.  It's confusing and non-obvious why this would happen.\r\n\r\n\r\n**I'm submitting a ...**\r\n\u003c!-- (check one with \"x\") --\u003e\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\r\n**Current behavior:**\r\n\r\nIf you initialise, or clear a `\u003cinput type=\"number\"\u003e` field to blank (ie `\"\"`).  It's `ng-change` handler will always be called on submit.  Even if it has not been changed.\r\n\r\n\r\n**Expected / new behavior:**\r\nChange handler does not get called.\r\n\r\n**Minimal reproduction of the problem with instructions:**\r\nAn example\r\n```\r\n\u003cscript src=\"https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js\"\u003e\u003c/script\u003e\r\n\r\n\u003cdiv ng-app=\"app\"\u003e\r\n  \u003cdiv ng-controller=\"MainCtrl\"\u003e\r\n    \u003cform ng-submit=\"submit()\"\u003e\r\n      \u003cinput type=\"number\" ng-model=\"form.testNumber\" ng-change=\"changed()\"/\u003e\r\n      \u003cbutton type=\"submit\"\u003eSubmit\u003c/button\u003e\r\n    \u003c/form\u003e\r\n  \u003c/div\u003e\r\n\u003c/div\u003e\r\n````\r\n```\r\nvar app = angular.module(\"app\", []);\r\n\r\napp.controller(\"MainCtrl\", function ($scope) {\r\n    $scope.form = {\r\n      testNumber: \"\"\r\n    };\r\n\r\n    $scope.changed = function () {\r\n        console.log(\"changed\");\r\n    };\r\n\r\n    $scope.submit = function () {\r\n        console.log(\"submitted\");\r\n    };\r\n});\r\n```\r\nsee: http://jsfiddle.net/6qxrygzm/1/\r\n\r\nClick the submit button in the demo.  The console will log the message \"changed\" even though the field is untouched from its initialised value.\r\n\r\n**AngularJS version:** 1.8.2\r\n\r\n**Browser:** all | Chrome 98.0.4758.102 | Firefox 97.0.1 (64-bit)\r\n\r\n**Anything else:**\r\n\u003c!-- e.g. stacktraces, related issues, suggestions how to fix --\u003e\r\n","author":{"url":"https://github.com/BigBadaboom","@type":"Person","name":"BigBadaboom"},"datePublished":"2022-02-25T10:56:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/17181/angular.js/issues/17181"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d35214ba-2c4d-ec3d-7ffa-0388ff69b4de
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC3B4:226F59:CF927:117D50:696E07EE
html-safe-nonceb13767bf9ca98fe35e6dbe05e888b964a6f6aaf8a696a8b70836483fbf25cbb2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0I0OjIyNkY1OTpDRjkyNzoxMTdENTA6Njk2RTA3RUUiLCJ2aXNpdG9yX2lkIjoiNTU5ODQwMzEyNjY1MDM0MTM1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacac08fcdd2f8e63431e549731c246ffad77c46bdd04e214ce34dde9c618ad56d3
hovercard-subject-tagissue:1150311753
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular.js/17181/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b9ec422cd1ed78944d963b1013719a20a2658e73b726e483984aaeac8be047e5/angular/angular.js/issues/17181
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b9ec422cd1ed78944d963b1013719a20a2658e73b726e483984aaeac8be047e5/angular/angular.js/issues/17181
og:image:altI suppose this doesn't meet the LTS definition of a critical bug. But I am going to file it here in case it is - at the very least - helpful to other people. I spent a lot of time tracking down thi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBigBadaboom
hostnamegithub.com
expected-hostnamegithub.com
None9b5131b207ddd175abf059a848d5f4302ec0606b02211b989013be49cf08593e
turbo-cache-controlno-preview
go-importgithub.com/angular/angular.js git https://github.com/angular/angular.js.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id460078
octolytics-dimension-repository_nwoangular/angular.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id460078
octolytics-dimension-repository_network_root_nwoangular/angular.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef8590a63bfc8093b241930ca57d536c9a50f9680
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17181#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F17181
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular.js%2Fissues%2F17181
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular.js
Reloadhttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17181
Reloadhttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17181
Reloadhttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17181
angular https://patch-diff.githubusercontent.com/angular
angular.jshttps://patch-diff.githubusercontent.com/angular/angular.js
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular.js
Fork 27.3k https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular.js
Star 59k https://patch-diff.githubusercontent.com/login?return_to=%2Fangular%2Fangular.js
Code https://patch-diff.githubusercontent.com/angular/angular.js
Issues 389 https://patch-diff.githubusercontent.com/angular/angular.js/issues
Pull requests 72 https://patch-diff.githubusercontent.com/angular/angular.js/pulls
Actions https://patch-diff.githubusercontent.com/angular/angular.js/actions
Projects 0 https://patch-diff.githubusercontent.com/angular/angular.js/projects
Wiki https://patch-diff.githubusercontent.com/angular/angular.js/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/angular/angular.js/security
Please reload this pagehttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17181
Insights https://patch-diff.githubusercontent.com/angular/angular.js/pulse
Code https://patch-diff.githubusercontent.com/angular/angular.js
Issues https://patch-diff.githubusercontent.com/angular/angular.js/issues
Pull requests https://patch-diff.githubusercontent.com/angular/angular.js/pulls
Actions https://patch-diff.githubusercontent.com/angular/angular.js/actions
Projects https://patch-diff.githubusercontent.com/angular/angular.js/projects
Wiki https://patch-diff.githubusercontent.com/angular/angular.js/wiki
Security https://patch-diff.githubusercontent.com/angular/angular.js/security
Insights https://patch-diff.githubusercontent.com/angular/angular.js/pulse
ngChange handler called, on submit, for blank type="number" fields, when they haven't changedhttps://patch-diff.githubusercontent.com/angular/angular.js/issues/17181#top
https://github.com/BigBadaboom
https://github.com/BigBadaboom
BigBadaboomhttps://github.com/BigBadaboom
on Feb 25, 2022https://github.com/angular/angular.js/issues/17181#issue-1150311753
http://jsfiddle.net/6qxrygzm/1/http://jsfiddle.net/6qxrygzm/1/
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.