Skip to content

Disk size input no longer auto-updates with image change #1823

@david-crespo

Description

@david-crespo

Most likely introduced with #1582. The disk size input is supposed to update if the image is changed to one that's too big for the current size.

onChange={(id) => {
const image = images.find((i) => i.id === id)! // if it's selected, it must be present
const imageSizeGiB = image.size / GiB
if (diskSizeField.value < imageSizeGiB) {
const nearest10 = Math.ceil(imageSizeGiB / 10) * 10
diskSizeField.onChange(nearest10)
}
}}

2023-11-29-disk-size-input-bug.mp4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions