File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ class CraftTooltip extends HTMLElement {
168
168
} ;
169
169
170
170
handleMouseEnter = ( ) => {
171
+ console . log ( 'mouseenter' ) ;
171
172
this . isHovering = true ;
172
173
173
174
if ( this . delayTimeout ) {
@@ -186,6 +187,7 @@ class CraftTooltip extends HTMLElement {
186
187
} ;
187
188
188
189
handleMouseLeave = ( ) => {
190
+ console . log ( 'mouseleave' ) ;
189
191
this . isHovering = false ;
190
192
191
193
if ( this . delayTimeout ) {
@@ -250,6 +252,7 @@ class CraftTooltip extends HTMLElement {
250
252
} ;
251
253
252
254
show = ( ) => {
255
+ autoUpdate ( this . triggerElement , this . tooltip , this . update ) ;
253
256
Object . assign ( this . tooltip . style , {
254
257
opacity : 1 ,
255
258
transform : [ 'left' , 'right' ] . includes ( this . getStaticSide ( ) )
@@ -259,8 +262,6 @@ class CraftTooltip extends HTMLElement {
259
262
pointerEvents : 'auto' ,
260
263
zIndex : 101 ,
261
264
} ) ;
262
-
263
- autoUpdate ( this . triggerElement , this . tooltip , this . update ) ;
264
265
this . showing = true ;
265
266
} ;
266
267
You can’t perform that action at this time.
0 commit comments