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

Selected nummeric value does not change when 0 key is pressed #1364

Open
pavoleichler opened this issue Aug 13, 2016 · 0 comments
Open

Selected nummeric value does not change when 0 key is pressed #1364

pavoleichler opened this issue Aug 13, 2016 · 0 comments

Comments

@pavoleichler
Copy link

When you focus the masked nummeric input and press any number, the value changes. Except for 0, which is ignored.

Set up a nummeric inputmask:

$(this.ui.inputCurrency).each(function () {
    $(this).inputmask('currency', {
        digits: 0,
        allowMinus: false,
        suffix: ' €',
        groupSeparator: ' ',
        radixPoint: ',',
        prefix: '',
        rightAlign: false,
        removeMaskOnSubmit: true,
        max: $(this).data('max')
    });
});

Set its value to a non-zero number.
Blur and then focus the input (this should select the input value).

Now, if you press 0, nothing happens. If you press any other number, the value changes.

One would expect the value to change to zero when the 0 key is pressed.

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

No branches or pull requests

2 participants