Make TypeScript 4 happy

pull/186/head
Cory LaViska 2020-08-21 06:50:31 -04:00
rodzic d949eba957
commit 8da9dd7873
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -55,7 +55,7 @@ export class Dropdown {
@Prop() closeOnSelect = true;
/** The dropdown will close when the user interacts outside of this element (e.g. clicking). */
@Prop() containingElement: HTMLElement = this.host;
@Prop() containingElement: HTMLElement;
/** The distance in pixels from which to offset the panel away from its trigger. */
@Prop() distance = 2;
@ -88,6 +88,10 @@ export class Dropdown {
}
connectedCallback() {
if (!this.containingElement) {
this.containingElement = this.host;
}
this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this);
this.handleMenuItemActivate = this.handleMenuItemActivate.bind(this);