From 18f883545b26f5ccd15186c4a9cb97859d5422e4 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 25 Jun 2021 18:19:01 +0200 Subject: [PATCH] Remove duplicate method --- src/shared/components/dropdown.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/shared/components/dropdown.js b/src/shared/components/dropdown.js index f745693d5..1671d11fd 100644 --- a/src/shared/components/dropdown.js +++ b/src/shared/components/dropdown.js @@ -20,6 +20,8 @@ export class BaseDropdown extends CustomElement { } firstUpdated () { + super.firstUpdated(); + this.initArrowNavigation(); this.menu = this.querySelector('.dropdown-menu'); this.dropdown = this.firstElementChild; this.button = this.dropdown.querySelector('button'); @@ -96,11 +98,6 @@ export default class DropdownList extends BaseDropdown { this.navigator.disable(); } - firstUpdated () { - super.firstUpdated(); - this.initArrowNavigation(); - } - initArrowNavigation () { if (!this.navigator) { const options = {