mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add field color
This commit is contained in:
1 parent
ca7ab5aab7
commit
76f1f140ac
8 files changed
+30
-3
No files matched your search
@@ -12,6 +12,10 @@ window.customElements.define('draw-signature', class extends HTMLElement {
|
||||
|
||||
this.pad = new SignaturePad(this.canvas)
|
||||
|
||||
if (this.dataset.color) {
|
||||
this.pad.penColor = this.dataset.color
|
||||
}
|
||||
|
||||
this.pad.addEventListener('endStroke', () => {
|
||||
this.updateSubmitButtonVisibility()
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user