Skip to content

Form is not marked as dirty if FileInput file is changed #8491

@zdila

Description

@zdila

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

8.3.9

What package has an issue?

@mantine/form

What framework do you use?

Vite

In which browsers you can reproduce the issue?

None

Describe the bug

I use useForm() and

 <FileInput
          key={form.key("image")}
          {...form.getInputProps("image")}

On edit I initialize form with data from server:

    form.setValues(values);

    form.resetDirty(values);

values has image which is a Blob.

If I pick a different image the form is not marked as dirty (form.isDirty() is false).

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

No response

Self-service

  • I would be willing to implement a fix for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs reproductionIssues without reproduction, closed within a week if the reproduction is not provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions