mrchandoo / cordova-plugin-decimal-keyboard

Cordova plugin to show decimal keyboard on iPhones
Apache License 2.0
37 stars 71 forks source link

ng-model removed? #10

Closed gehirnmitei closed 6 years ago

gehirnmitei commented 7 years ago

Ionic v1 Angular 1.5.3 I'm using this plugin on input with ng-model Attribute, but somehow this Attribute seems to get lost.

My workaround was to access the value of the input through the DOM Element, but i don't understand why scope.XXX is't working.

kas84 commented 6 years ago

I believe this is due to pattern="[0-9]*". When you type 15.32, for example, it doesn't comply that pattern and model gets undefined. What I've done is wrap it in a directive and listen to blur events to set the model.

mrchandoo commented 6 years ago

Yep, once you use pattern with angular the component doesn't work, i have initially posted few responses for the same