bug fixes

This commit is contained in:
sairaj mote 2023-01-09 18:59:41 +05:30
parent 583a14d1ad
commit 51dccfa1d9
2 changed files with 3 additions and 2 deletions

View File

@ -210,6 +210,7 @@ customElements.define('sm-popup', class extends HTMLElement {
this.handleTouchEnd = this.handleTouchEnd.bind(this); this.handleTouchEnd = this.handleTouchEnd.bind(this);
this.detectFocus = this.detectFocus.bind(this); this.detectFocus = this.detectFocus.bind(this);
this.handleSoftDismiss = this.handleSoftDismiss.bind(this); this.handleSoftDismiss = this.handleSoftDismiss.bind(this);
this.debounce = this.debounce.bind(this);
} }
static get observedAttributes() { static get observedAttributes() {
@ -484,7 +485,7 @@ customElements.define('sm-popup', class extends HTMLElement {
} }
connectedCallback() { connectedCallback() {
this.popupBodySlot.addEventListener('slotchange', debounce(() => { this.popupBodySlot.addEventListener('slotchange', this.debounce(() => {
this.forms = this.querySelectorAll('sm-form'); this.forms = this.querySelectorAll('sm-form');
this.updateFocusableList() this.updateFocusableList()
}, 0)); }, 0));

File diff suppressed because one or more lines are too long