From 0079071eaeb5ff7c70eb8779576246156ecc6f46 Mon Sep 17 00:00:00 2001 From: Harsh Mahajan Date: Fri, 20 Feb 2026 14:57:13 +0530 Subject: [PATCH] fix onSelect and onChange are both wired to handleSelect, causing it to be called twice per user selection. --- src/lib/components/domains/recordTable.svelte | 10 ++++------ src/lib/components/git/selectRootModal.svelte | 9 +++------ 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/lib/components/domains/recordTable.svelte b/src/lib/components/domains/recordTable.svelte index fdba7438e..118b8149a 100644 --- a/src/lib/components/domains/recordTable.svelte +++ b/src/lib/components/domains/recordTable.svelte @@ -140,16 +140,14 @@ {#if variant === 'cname' && !subdomain} {#if isCloud} - Since is an apex domain, - CNAME record is only supported by certain providers. If yours doesn't, please verify - using + Since is an apex domain, CNAME + record is only supported by certain providers. If yours doesn't, please verify using nameservers instead. {:else if aTabVisible || aaaaTabVisible} - Since is an apex domain, - CNAME record is only supported by certain providers. If yours doesn't, please verify - using + Since is an apex domain, CNAME + record is only supported by certain providers. If yours doesn't, please verify using {#if aTabVisible} A record {#if aaaaTabVisible} diff --git a/src/lib/components/git/selectRootModal.svelte b/src/lib/components/git/selectRootModal.svelte index 2e184a6b4..a121239cb 100644 --- a/src/lib/components/git/selectRootModal.svelte +++ b/src/lib/components/git/selectRootModal.svelte @@ -376,10 +376,8 @@ } }); - async function handleSelect(detail: { fullPath: string }) { - const path = detail.fullPath as string; - currentPath = path; - loadPath(path); + function handleSelect(detail: { fullPath: string }) { + loadPath(detail.fullPath); } function handleSubmit() { @@ -398,8 +396,7 @@ expanded={expandedStore} bind:selected={currentPath} openTo={initialPath} - onSelect={handleSelect} - onChange={handleSelect} /> + onSelect={handleSelect} />