ViewUIPlus icon indicating copy to clipboard operation
ViewUIPlus copied to clipboard

[Bug Report]@submit.prevent is not work with <Form>

Open Chhunneng opened this issue 2 years ago • 0 comments

Environment

Vue 2, Iview 3.5.4.

Reproduction link

https://www.iviewui.com/view-ui-plus/component/form/form

Steps to reproduce

make the< Form> to support event @submit. As of now, all events that are put in Form is not support

What is expected?

when adding the event @submit.prevent, the form will not reload to the browser and will run a function in @submit.prevent instead. Example <Form @submit.prevent="validateFunc">

What is actually happening?

When there is only one input and we click enter, the browser will submit the form automatically. In document said we can add @submit.prevent but it does not work for all events.

Chhunneng avatar Mar 31 '23 04:03 Chhunneng