File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,9 @@ const Plugin = (Alpine) => {
182
182
event_id : id ,
183
183
params : params ,
184
184
target : target ,
185
- element_key : el . getAttribute ( 'key' ) ,
185
+ element_key :
186
+ el . getAttribute ( 'key' ) ||
187
+ el . getAttribute ( 'fir-key' ) ,
186
188
session_id : getSessionIDFromCookie ( ) ,
187
189
} )
188
190
}
@@ -307,7 +309,9 @@ const Plugin = (Alpine) => {
307
309
params : params ,
308
310
is_form : true ,
309
311
target : target ,
310
- element_key : el . getAttribute ( 'key' ) ,
312
+ element_key :
313
+ el . getAttribute ( 'key' ) ||
314
+ el . getAttribute ( 'fir-key' ) ,
311
315
session_id : getSessionIDFromCookie ( ) ,
312
316
} )
313
317
Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ func writeAttributes(node *html.Node) {
155
155
156
156
// fir-myevent-ok--myblock
157
157
key := getAttr (node , "key" )
158
+ firKey := getAttr (node , "fir-key" )
159
+ if len (firKey ) != 0 {
160
+ key = firKey
161
+ }
158
162
targetClass := fmt .Sprintf ("fir-%s" , getClassNameWithKey (eventns , & key ))
159
163
classes := strings .Fields (getAttr (node , "class" ))
160
164
if ! slices .Contains (classes , targetClass ) {
You can’t perform that action at this time.
0 commit comments