fix(components): [collapse] fix triggering form action when inside it (#14308)

When el-collapse with el-collapse-item is placed inside a form and the collapse trigger btn is
pressed, form's action as triggered. This fixes it

closed #14304
This commit is contained in:
Karolis_Stoncius_Sneakybox
2023-09-17 05:27:37 +03:00
committed by GitHub
parent 92382ddca5
commit 02905e42bf

View File

@@ -7,6 +7,7 @@
:aria-controls="scopedContentId"
:aria-describedby="scopedContentId"
:tabindex="disabled ? -1 : 0"
type="button"
@click="handleHeaderClick"
@keydown.space.enter.stop.prevent="handleEnterClick"
@focus="handleFocus"