Browse Source

Remove duplicate method

JC Brand 4 years ago
parent
commit
18f883545b
1 changed files with 2 additions and 5 deletions
  1. 2 5
      src/shared/components/dropdown.js

+ 2 - 5
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 = {