@@ -34,8 +34,8 @@ class DetailsMenuElement extends HTMLElement {
34
34
const subscriptions = [
35
35
fromEvent ( details , 'compositionstart' , e => trackComposition ( this , e ) ) ,
36
36
fromEvent ( details , 'compositionend' , e => trackComposition ( this , e ) ) ,
37
- fromEvent ( details , 'click' , e => shouldCommit ( details , this , e ) ) ,
38
- fromEvent ( details , 'change' , e => shouldCommit ( details , this , e ) ) ,
37
+ fromEvent ( details , 'click' , e => shouldCommit ( details , e ) ) ,
38
+ fromEvent ( details , 'change' , e => shouldCommit ( details , e ) ) ,
39
39
fromEvent ( details , 'keydown' , e => keydown ( details , this , e ) ) ,
40
40
fromEvent ( details , 'toggle' , ( ) => loadFragment ( details , this ) , { once : true } ) ,
41
41
fromEvent ( details , 'toggle' , ( ) => closeCurrentMenu ( details ) ) ,
@@ -161,7 +161,7 @@ function sibling(details: Element, next: boolean): HTMLElement | null {
161
161
162
162
const ctrlBindings = navigator . userAgent . match ( / M a c i n t o s h / )
163
163
164
- function shouldCommit ( details : Element , menu : DetailsMenuElement , event : Event ) {
164
+ function shouldCommit ( details : Element , event : Event ) {
165
165
const target = event . target
166
166
if ( ! ( target instanceof Element ) ) return
167
167
0 commit comments