Swap label for span in TextConfirmModal to support double clicking label (#40552)

This commit is contained in:
Joshen Lim authored and GitHub committed 2025-11-18 18:00:44 +08:00
1 parent d78f6a1678
commit 16fb243141
1 file changed
+2 -2
@@ -161,13 +161,13 @@ export const TextConfirmModal = forwardRef<
name="confirmValue"
render={({ field }) => (
<FormItem_Shadcn_ className="flex flex-col gap-y-2">
<FormLabel_Shadcn_ {...label}>
<span className="text-sm text-foreground-lighter">
Type{' '}
<span className="text-foreground break-all whitespace-pre">
{confirmString}
</span>{' '}
to confirm.
</FormLabel_Shadcn_>
</span>
<FormControl_Shadcn_>
<Input_Shadcn_
autoComplete="off"