Skip to content

Commit

Permalink
toast.js: fix new lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Oct 2, 2022
1 parent 3cdbc3d commit 9a58668
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions js/src/toast.js
Expand Up @@ -153,15 +153,20 @@ class Toast extends BaseComponent {
_onInteraction(event, isInteracting) {
switch (event.type) {
case 'mouseover':
case 'mouseout':
case 'mouseout': {
this._hasMouseInteraction = isInteracting
break
}

case 'focusin':
case 'focusout':
case 'focusout': {
this._hasKeyboardInteraction = isInteracting
break
default:
}

default: {
break
}
}

if (isInteracting) {
Expand Down

0 comments on commit 9a58668

Please sign in to comment.