element-plus [Component] [input-number] el-input-number设置了max min,当输入值等于min 或者 max时,@update:modelValue会触发两次

ej83mcc0  于 7个月前  发布在  其他
关注(0)|答案(1)|浏览(68)

Bug Type: Component

Environment

  • Vue Version: 3.2.5
  • Element Plus Version: 1.1.0-beta.3
  • Browser / OS: Chrome 114.0.5735.134 win64
  • Build Tool: Vite

Reproduction

  • el-input-number

Element Plus Playground

Steps to reproduce

1.输入值为min 或 max
2.查看@update:modelValue执行次数

What is Expected?

输入值为1或者9时,@update:modelValue仅执行一次

What is actually happening?

输入值为1或9时,@update:modelValue执行了两次

Additional comments

(empty)

z0qdvdin

z0qdvdin1#

According to the information you provided, you seem to be using a very old version, please update the version and try again.

相关问题