Skip to content

Form exposed dirty, dirtyFields, blurredFields, and touchedFields are not reactive #4238

@Bobakanoosh

Description

@Bobakanoosh

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

3.1.3

Reproduction

https://codesandbox.io/p/devbox/suspicious-water-smppjv

Description

The docs note that you can access exposed variables from UForm. I've found that the following fields are not reactive:

  • dirty
  • dirtyFields
  • blurredFields
  • touchedFields

Additional context

I see in the source that they're not defined with ref or reactive.

Additionally, the dirty computed that gets exposed would never get updated since dirtyFields is not reactive.

Logs

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv3#1289

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions