assisrafael / assisrafael/angular-input-masks

Bug on ui-percentage-mask="0" and ui-percentage-mask="1"

Open
#120 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
955
Forks
329
PR merge metrics
No merged PRs in 30d

Description

I've tested on 1.4.2 with angular 1.2.28 this bug also appears on demo page percentage mask...
When I use BACKSPACE to delete the values with the mask digits set to "0" I can not delete the last record, in the others masks, normally it is set to 0.

When the mask decimals is set to "1" when I backspace the last digit, the model value is set to NaN.

This repo is awsome I'm trying to figure out how to solve this, but I'm a dumb...

Thanks anyway.
##

Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26600385-bug-on-ui-percentage-mask-0-and-ui-percentage-mask-1?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Research direction

Reproduce both cases on the demo page with AngularJS 1.2.28: backspace with the percentage mask digits set to "0", and with decimals set to "1". Trace the percentage-mask input handling and model updates; done means the final digit can be removed in the first case and deleting the last decimal does not set the model to NaN.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.