0.0.29
This commit is contained in:
parent
092cd14aaa
commit
267372cff1
@ -1772,6 +1772,8 @@ customElements.define('sm-popup', class extends HTMLElement {
|
|||||||
constructor() {
|
constructor() {
|
||||||
super()
|
super()
|
||||||
this.attachShadow({ mode: 'open' }).append(smPopup.content.cloneNode(true))
|
this.attachShadow({ mode: 'open' }).append(smPopup.content.cloneNode(true))
|
||||||
|
|
||||||
|
this.allowClosing = false
|
||||||
}
|
}
|
||||||
|
|
||||||
resumeScrolling() {
|
resumeScrolling() {
|
||||||
@ -1783,6 +1785,9 @@ customElements.define('sm-popup', class extends HTMLElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show(pinned, popupStack) {
|
show(pinned, popupStack) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.allowClosing = true
|
||||||
|
}, 300);
|
||||||
this.setAttribute('open', '')
|
this.setAttribute('open', '')
|
||||||
this.pinned = pinned
|
this.pinned = pinned
|
||||||
this.popupStack = popupStack
|
this.popupStack = popupStack
|
||||||
@ -1791,6 +1796,10 @@ customElements.define('sm-popup', class extends HTMLElement {
|
|||||||
document.body.setAttribute('style', `overflow: hidden; top: -${window.scrollY}px`)
|
document.body.setAttribute('style', `overflow: hidden; top: -${window.scrollY}px`)
|
||||||
}
|
}
|
||||||
hide() {
|
hide() {
|
||||||
|
if (!this.allowClosing) return
|
||||||
|
setTimeout(() => {
|
||||||
|
this.allowClosing = false
|
||||||
|
}, 300);
|
||||||
this.removeAttribute('open')
|
this.removeAttribute('open')
|
||||||
if (window.innerWidth < 648) {
|
if (window.innerWidth < 648) {
|
||||||
this.popup.style.transform = 'translateY(100%)';
|
this.popup.style.transform = 'translateY(100%)';
|
||||||
|
|||||||
@ -74,7 +74,7 @@
|
|||||||
*Requires Rupee to be deposited first.
|
*Requires Rupee to be deposited first.
|
||||||
</p>
|
</p>
|
||||||
<sm-input floId id="token_receiver" placeholder="Reciever's FLO ID" required animate></sm-input>
|
<sm-input floId id="token_receiver" placeholder="Reciever's FLO ID" required animate></sm-input>
|
||||||
<sm-input id="token_amount" placeholder="amount" type="number" min="1" required animate></sm-input>
|
<sm-input id="token_amount" placeholder="mount" type="number" min="1" required animate></sm-input>
|
||||||
</sm-popup>
|
</sm-popup>
|
||||||
<sm-popup id="deposit_rupee">
|
<sm-popup id="deposit_rupee">
|
||||||
<header class="popup-header" slot="header">
|
<header class="popup-header" slot="header">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user