add field color

This commit is contained in:
Pete Matsyburka
2024-11-10 12:48:53 +02:00
parent ca7ab5aab7
commit 76f1f140ac
8 changed files with 30 additions and 3 deletions
+4
View File
@@ -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()
})