From 812f891bfca0697cb2ec628700b7bbadbd8bf93a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 2 Oct 2022 08:24:41 +0300 Subject: Update devDependencies (#37238) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update devDependencies * @babel/cli ^7.18.10 → ^7.19.3 * @babel/core ^7.19.1 → ^7.19.3 * @babel/preset-env ^7.19.1 → ^7.19.3 * eslint-plugin-unicorn ^43.0.2 → ^44.0.0 * hugo-bin ^0.92.1 → ^0.92.2 * lockfile-lint ^4.9.3 → ^4.9.5 * postcss ^8.4.16 → ^8.4.17 * stylelint ^14.12.1 → ^14.13.0 * vnu-jar 21.10.12 → 22.9.29 * toast.js: fix new lint errors --- js/src/toast.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/src/toast.js b/js/src/toast.js index fe4ec2972..8aed2fd56 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) { -- cgit v1.2.3