Skip to content

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

Closed

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

Activity

  1. charliepark commented on Jan 8, 2024

    @charliepark
    Contributor

    Fixed this back in #1829

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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