@@ -55,8 +55,8 @@ import { SpanFC } from '../../internal/functional-components/span/component';
5555import type { AriaHasPopupPropType } from '../../schema/props/aria-has-popup' ;
5656import { validateAccessAndShortKey } from '../../schema/validators/access-and-short-key' ;
5757import clsx from '../../utils/clsx' ;
58- import { dispatchDomEvent , KolEvent } from '../../utils/events' ;
5958import { setFocus } from '../../utils/element-focus' ;
59+ import { dispatchDomEvent , KolEvent } from '../../utils/events' ;
6060import { propagateResetEventToForm , propagateSubmitEventToForm } from '../form/controller' ;
6161import { AssociatedInputController } from '../input-adapter-leanup/associated.controller' ;
6262
@@ -121,14 +121,14 @@ export class KolButtonWc implements ButtonAPI {
121121 }
122122
123123 if ( this . host ) {
124- dispatchDomEvent ( this . host as HTMLElement , KolEvent . click , this . state . _value ) ;
124+ dispatchDomEvent ( this . host , KolEvent . click , this . state . _value ) ;
125125 }
126126 } ;
127127
128128 private readonly onMouseDown = ( event : MouseEvent ) => {
129129 this . state ?. _on ?. onMouseDown ?.( event ) ;
130130 if ( this . host ) {
131- dispatchDomEvent ( this . host as HTMLElement , KolEvent . mousedown ) ;
131+ dispatchDomEvent ( this . host , KolEvent . mousedown ) ;
132132 }
133133 } ;
134134
@@ -323,7 +323,7 @@ export class KolButtonWc implements ButtonAPI {
323323 } ;
324324
325325 public constructor ( ) {
326- this . controller = new AssociatedInputController ( this , 'button' , this . host as HTMLElement ) ;
326+ this . controller = new AssociatedInputController ( this , 'button' , this . host ) ;
327327 }
328328
329329 @Watch ( '_accessKey' )
0 commit comments