Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui-number-mask changes the input value when mask is changed. #306

Open
brunosantosnasajon opened this issue Oct 7, 2017 · 2 comments
Open

Comments

@brunosantosnasajon
Copy link

brunosantosnasajon commented Oct 7, 2017

If ui-number-mask is changed dinamically ex.:
<input
type="text"
ui-number-mask="cntrl.decimals"
ng-model="entity.quantity"

Suppose decimals is 0 and quantity is 333. If decimals changes do 2 lets say, then the input shows 3,33 when I think it should show 333,00, meaning, the value should not change, just the mask.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@assisrafael
Copy link
Owner

assisrafael commented Oct 11, 2017

This seems reasonable. Can you make a pull request to fix this behavior?

@douglas-franca
Copy link

#360

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants