mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust flash
This commit is contained in:
1 parent
ef28b80589
commit
53ca45a67a
2 files changed
+12
-19
No files matched your search
@@ -1,6 +1,4 @@
|
||||
import { actionable } from '@github/catalyst/lib/actionable'
|
||||
|
||||
export default actionable(class extends HTMLElement {
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
this.addEventListener('turbo:morph-element', this.onMorph)
|
||||
|
||||
@@ -32,9 +30,7 @@ export default actionable(class extends HTMLElement {
|
||||
this.closeTimeout = setTimeout(this.close, 2000)
|
||||
}
|
||||
|
||||
close = (event) => {
|
||||
event?.preventDefault()
|
||||
|
||||
close = () => {
|
||||
clearTimeout(this.closeTimeout)
|
||||
|
||||
this.hideAnimation = this.animate([
|
||||
@@ -44,4 +40,4 @@ export default actionable(class extends HTMLElement {
|
||||
|
||||
this.hideAnimation.onfinish = () => this.remove()
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user