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

one-way-number-mask types one or many "0" characters in odd circumstances #117

Open
hergaiety opened this issue Mar 25, 2020 · 1 comment
Labels

Comments

@hergaiety
Copy link
Contributor

I've written these two failing tests for one-way-number-mask-test.js.

  test('It does not input a zero when hitting "."', async function(assert) {
    await render(hbs`<OneWayNumberMask />`);
    await fillIn('input', '.');

    assert.dom('input').hasValue('');
  });

  test('It does not input a zero when hitting "m"', async function(assert) { // This also happens with the letter `k`
    await render(hbs`<OneWayNumberMask />`);
    await fillIn('input', 'm');

    assert.dom('input').hasValue('');
  });
@viniciussbs
Copy link

Maybe the reason is the "shortcut" option. If you type "m", it's replaced by "000000". I cannot turn it off passing @options={{hash shortcuts=null}} though.

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

No branches or pull requests

3 participants