tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: Input组件clear事件触发的时候input事件不触发

Open AcWrong02 opened this issue 11 months ago • 2 comments

Version

latest

Vue Version

latest

Link to minimal reproduction

Step to reproduce

  1. 点击clear图标,发现只触发了clear事件

What is expected

触发clear后,应该触发input事件,因为modelValue的值发生改变了

What is actually happening

只触发了clear事件

Any additional comments (optional)

No response

AcWrong02 avatar Mar 13 '24 14:03 AcWrong02

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.

Issues-translate-bot avatar Mar 13 '24 14:03 Issues-translate-bot

I will fix it and add unit test of this component.

AcWrong02 avatar Mar 13 '24 14:03 AcWrong02

非bug 问题,无需修改。 根据MDN , input 事件是指的输入时的事件,处理中英文的输入, 接近于keydown ,但也不一样。
清除动作本来就不是输入事件, 也不需要触发input。

shenjunjian avatar Aug 04 '24 05:08 shenjunjian

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.

Issues-translate-bot avatar Aug 04 '24 05:08 Issues-translate-bot