mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
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:
committed by
GitHub
parent
92382ddca5
commit
02905e42bf
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user