Closed QJvic closed 8 months ago
Can you provide a test case about this bug?
Can you provide a test case about this bug?
test('่ฎพ็ฝฎๆๅฐๅผ', async () => {
const wrapper = mount(MInputNumber, {
props: { modelValue: 5, min: 4 },
});
await wrapper.find('input').setValue(4);
// modify once more
await wrapper.find('input').setValue(3);
expect(wrapper.element.querySelector('input')!.value).toBe('4');
});
Before fixing, the result is
AssertionError: expected '3' to be '4' // Object.is equality
Expected :4
Actual :3
After fixing, the test passed.
Do you need me to add a PR or add it you yourself ?
Do you need me to add a PR or add it you yourself ?
If you want more commits, PR Welcome. If not, itโs okay for me to add it. That's up to you๐ถโ๐ซ๏ธ.
Do you need me to add a PR or add it you yourself ?
If you want more commits, PR Welcome. If not, itโs okay for me to add it. That's up to you๐ถโ๐ซ๏ธ.
I'm pleasure to add more commits. ๐ค
๐ค Nature of this PR
๐ Related Issue
https://github.com/shuimo-design/shuimo-ui/issues/76
๐ก Background and Solution
โ Pre-merge Checklist
change the position of setting
e.target.value
โ๏ธPlease self-check and check all options.โ๏ธ