File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 80
80
<p >Accordion content here.</p >
81
81
</Accordion >
82
82
</Hst .Variant >
83
+
84
+ <Hst .Variant title =" An Accordion in a form that doesn't submit the form" >
85
+ <form
86
+ on:submit ={() => {
87
+ throw new Error (" The form submitted and that's bad" );
88
+ }}
89
+ >
90
+ <Accordion title =" Certificates" subtitle =" Expires on Wed Feb 01, 2030" >
91
+ <Button class =" !p-0" icon =" info" variant =" secondary" slot =" action" />
92
+ <p >Accordion content here.</p >
93
+ </Accordion >
94
+ </form >
95
+ </Hst .Variant >
83
96
</Hst .Story >
Original file line number Diff line number Diff line change 46
46
aria-controls =" {id }-content"
47
47
class =" accordion-open flex w-full flex-col"
48
48
disabled ={disabled || readOnly }
49
+ type =" button"
49
50
on:click ={toggleAccordion }
50
51
>
51
52
<div class =" space-between flex w-full flex-row items-center" >
You can’t perform that action at this time.
0 commit comments