Skip to content

Form isDirty always false after setting defaults #2109

Open
@Soletiq

Description

Versions:

  • @inertiajs/vue3 version: 1.0.14

Describe the problem:

IsDirty remains false after pushing values to an array.

Steps to reproduce:

Set up a form:

const form = useForm({
    foo: []
})

Set the values as default:

form.defaults()

Push to the array:

console.log('before push', form.isDirty) // false
form.foo.push(1)
console.log('after push', form.isDirty) // false?

Metadata

Assignees

No one assigned

    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