Open
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
2.0.0-rc.4
Environment
Win10, Chrome 84.0.4147.105, vue3.0.4
Reproduction link
https://2x.antdv.com/components/input-number-cn/
Steps to reproduce
<a-input-number v-model:value="count" title="数字输入" @change="onChange"></a-input-number>
export default defineComponent({
setup() {
const count = ref(0);
watch(count, val => {
debugger; // 点击数字输入框的上下箭头,会不停触发断点。直接输入数值不会。
console.log(val);
});
const onChange = val => {
debugger; // 也会不停触发断点
console.log(val);
};
return {
count,
onChange
};
}
})
What is expected?
点击数字输入框的上下箭头,触发一次断点,打印新值
What is actually happening?
点击数字输入框的上下箭头,不停触发断点,打印新值
如果使用computeds的set绑定count,以及a-input-number的change事件也一样