Remove duplicate method
This commit is contained in:
parent
7a22afa9ec
commit
18f883545b
@ -20,6 +20,8 @@ export class BaseDropdown extends CustomElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
firstUpdated () {
|
firstUpdated () {
|
||||||
|
super.firstUpdated();
|
||||||
|
this.initArrowNavigation();
|
||||||
this.menu = this.querySelector('.dropdown-menu');
|
this.menu = this.querySelector('.dropdown-menu');
|
||||||
this.dropdown = this.firstElementChild;
|
this.dropdown = this.firstElementChild;
|
||||||
this.button = this.dropdown.querySelector('button');
|
this.button = this.dropdown.querySelector('button');
|
||||||
@ -96,11 +98,6 @@ export default class DropdownList extends BaseDropdown {
|
|||||||
this.navigator.disable();
|
this.navigator.disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
firstUpdated () {
|
|
||||||
super.firstUpdated();
|
|
||||||
this.initArrowNavigation();
|
|
||||||
}
|
|
||||||
|
|
||||||
initArrowNavigation () {
|
initArrowNavigation () {
|
||||||
if (!this.navigator) {
|
if (!this.navigator) {
|
||||||
const options = {
|
const options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user