Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/src/toast.js11
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) {