Skip to content

Commit 5b64b4a

Browse files
committed
handle duplicate form
1 parent 1f92f58 commit 5b64b4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/js/app.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,9 @@ const Hooks = {
389389
},
390390
DeriveDomain: {
391391
mounted() {
392-
const domainInput = document.querySelector("[data-domain-source]");
392+
const domainInput = (this.el.closest("form") || document).querySelector(
393+
"[data-domain-source]"
394+
);
393395
let shouldDerive = true;
394396

395397
// Listen for manual edits to the domain field

0 commit comments

Comments
 (0)