Skip to content

ng-model and ng-change not worked when element's input type is number  #1497

@offbye

Description

@offbye

input type="text" name="bankCardNo" ng-model="bankData.bankCardNo"
required="true" placeholder="Bank Card" maxlength="20" ng-change="bankCardChange()"

this code is worked good, but when I change to <input type="number" ... , a error will happen:
TypeError: undefined is not a function
at Scope.$scope.bankCardChange

Maybe it is a angularJs bug.

Metadata

Metadata

Assignees

Labels

needs: replythe issue needs a response from the user

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions