diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/src/toast.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/js/src/toast.js b/js/src/toast.js index fe4ec29729..8aed2fd565 100644 --- a/js/src/toast.js +++ b/js/src/toast.js @@ -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) { |