tiny-vue
tiny-vue copied to clipboard
🐛 [Bug]: Input组件clear事件触发的时候input事件不触发
Version
latest
Vue Version
latest
Link to minimal reproduction
Step to reproduce
- 点击clear图标,发现只触发了clear事件
What is expected
触发clear后,应该触发input事件,因为modelValue的值发生改变了
What is actually happening
只触发了clear事件
Any additional comments (optional)
No response
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: The input event does not trigger when the clear event of the Input component is triggered.
I will fix it and add unit test of this component.
非bug 问题,无需修改。
根据MDN , input 事件是指的输入时的事件,处理中英文的输入, 接近于keydown ,但也不一样。
清除动作本来就不是输入事件, 也不需要触发input。
Bot detected the issue body's language is not English, translate it automatically.
It's not a bug and no modification is required.
According to MDN, the input event refers to the event during input. It handles Chinese and English input, which is close to keydown, but not the same.
The clear action is not an input event, and does not need to trigger input.