mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix morph
This commit is contained in:
1 parent
827850646d
commit
9e89cb92a9
12 files changed
+34
-32
No files matched your search
@@ -1,14 +1,13 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
const maskedToken = this.input.value
|
||||
|
||||
this.input.addEventListener('focus', () => {
|
||||
this.maskedToken = this.input.value
|
||||
this.input.value = this.dataset.token
|
||||
this.input.select()
|
||||
})
|
||||
|
||||
this.input.addEventListener('focusout', () => {
|
||||
this.input.value = maskedToken
|
||||
this.input.value = this.maskedToken
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user