Skip to content

Commit f8c05f2

Browse files
authored
Fix target for checkbox on instance create form (#2808)
1 parent 50a84bc commit f8c05f2

File tree

1 file changed

+15
-18
lines changed

1 file changed

+15
-18
lines changed

app/forms/instance-create.tsx

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -737,24 +737,21 @@ const AdvancedAccordion = ({
737737
it is deleted
738738
</TipIcon>
739739
</h2>
740-
<div className="flex items-start gap-2.5">
741-
<Checkbox
742-
id="assignEphemeralIp"
743-
checked={assignEphemeralIp}
744-
onChange={() => {
745-
const newExternalIps = assignEphemeralIp
746-
? externalIps.field.value?.filter((ip) => ip.type !== 'ephemeral')
747-
: [
748-
...(externalIps.field.value || []),
749-
{ type: 'ephemeral', pool: selectedPool || defaultPool },
750-
]
751-
externalIps.field.onChange(newExternalIps)
752-
}}
753-
/>
754-
<label htmlFor="assignEphemeralIp" className="text-sans-md text-default">
755-
Allocate and attach an ephemeral IP address
756-
</label>
757-
</div>
740+
<Checkbox
741+
id="assignEphemeralIp"
742+
checked={assignEphemeralIp}
743+
onChange={() => {
744+
const newExternalIps = assignEphemeralIp
745+
? externalIps.field.value?.filter((ip) => ip.type !== 'ephemeral')
746+
: [
747+
...(externalIps.field.value || []),
748+
{ type: 'ephemeral', pool: selectedPool || defaultPool },
749+
]
750+
externalIps.field.onChange(newExternalIps)
751+
}}
752+
>
753+
Allocate and attach an ephemeral IP address
754+
</Checkbox>
758755
{assignEphemeralIp && (
759756
<Listbox
760757
name="pools"

0 commit comments

Comments
 (0)