mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
adjust ui
This commit is contained in:
1 parent
e11f4bddbe
commit
8f33c8d8b6
14 files changed
+383
-342
No files matched your search
@@ -2,6 +2,18 @@ export default class extends HTMLElement {
|
||||
static observedAttributes = ['class']
|
||||
|
||||
connectedCallback () {
|
||||
this.addEventListener('turbo:morph-element', this.onMorph)
|
||||
|
||||
this.trigger()
|
||||
}
|
||||
|
||||
disconnectedCallback () {
|
||||
this.removeEventListener('turbo:morph-element', this.onMorph)
|
||||
}
|
||||
|
||||
onMorph = (event) => {
|
||||
if (event.target !== this) return
|
||||
|
||||
this.trigger()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user