element-plus [Component] [input, input-number] el-form has a problem when i input something into el-input and press key 'enter'

dced5bon  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(42)

Bug Type: Component

Environment

  • Vue Version: 3.2.45
  • Element Plus Version: 2.3.0
  • Browser / OS: Mac OS X 10_15_7 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0
  • Build Tool: Webpack

Reproduction

  • el-input
  • el-input-number

CodePen

Steps to reproduce

type someting and press enter

What is Expected?

do nothing

What is actually happening?

refesh page

Additional comments

(empty)

t9aqgxwy

t9aqgxwy1#

You can view the element. It is wrapped in a native form. The Enter key is used as a submission form. You can add @submit.native.prevent to el-form

相关问题