element [Bug Report] Number input Setter and change event not getting triggered on keyboard inputs. it only happens on focus blur or using the control buttons

kknvjkwl  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(36)

Element UI version

2.15.10

OS/Browsers version

macOS Ventura / Chrome, firefox & safari

Vue version

2.7.13

https://codepen.io/Albert-Kurian/pen/LYrRVRO?editors=1111

Steps to reproduce

Type in a number into the element number input field using keyboard and then type in a number into the native number input field

What is Expected?

The value setter should get called and change event should be fired.

What is actually happening?

setter was not getting called and change handler was not triggered for element number input until the field lose focus, or the control buttons are used. but native input field updates the value with every key press.

svmlkihl

svmlkihl1#

The alternative approach would be to watch the value of "num" and trigger the "handleChange" event accordingly.

相关问题