adopted-ember-addons / adopted-ember-addons/ember-inputmask

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

未關閉
#117 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
JavaScript
星號
67
分支
43
PR 合併指標
30 天內沒有已合併 PR

描述

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

```js
test('It does not input a zero when hitting "."', async function(assert) {
await render(hbs``);
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``);
await fillIn('input', 'm');

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

貢獻指南

開啟貢獻指南

研究方向

Start with the failing cases in one-way-number-mask-test.js and run that test file to reproduce the behavior. Trace how OneWayNumberMask handles ".", "m", and "k" input, then confirm the input remains empty for each case when the tests pass.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
frontend
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。