From: GeoSot Date: Sun, 10 Oct 2021 12:39:47 +0000 (+0300) Subject: Dropdown: Remove redundant check since the `show` method already does it X-Git-Tag: v5.2.0-beta1~396 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bff95d55af1074d67738c5f83d69f7b8cff5a22a;p=thirdparty%2Fbootstrap.git Dropdown: Remove redundant check since the `show` method already does it --- diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 2376e74cdd..6c613efc6b 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -437,10 +437,7 @@ class Dropdown extends BaseComponent { } if (event.key === ARROW_UP_KEY || event.key === ARROW_DOWN_KEY) { - if (!isActive) { - instance.show() - } - + instance.show() instance._selectMenuItem(event) return }