mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix pdf generation
This commit is contained in:
1 parent
662d052904
commit
02fee9f885
9 files changed
+99
-68
No files matched your search
@@ -4,7 +4,7 @@ import { targets, targetable } from '@github/catalyst/lib/targetable'
|
||||
export default actionable(targetable(class extends HTMLElement {
|
||||
static [targets.static] = ['items']
|
||||
|
||||
addItem = (e) => {
|
||||
addItem (e) {
|
||||
e.preventDefault()
|
||||
|
||||
const originalItem = this.items[0]
|
||||
@@ -26,8 +26,9 @@ export default actionable(targetable(class extends HTMLElement {
|
||||
originalItem.parentNode.append(duplicateItem)
|
||||
}
|
||||
|
||||
removeItem = (e) => {
|
||||
removeItem (e) {
|
||||
e.preventDefault()
|
||||
|
||||
this.items.find((item) => item.contains(e.target))?.remove()
|
||||
}
|
||||
}))
|
||||
Reference in new issue
Block a user