Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controls bound to complex values not updating after patch #9

Open
colscott opened this issue Dec 6, 2023 · 0 comments
Open

Controls bound to complex values not updating after patch #9

colscott opened this issue Dec 6, 2023 · 0 comments

Comments

@colscott
Copy link
Owner

colscott commented Dec 6, 2023

Given data:

const data = {
  dateRange: { start: 20230401, end: 20230410 }
}

Control bound to dateRange

<date-range bind="/dateRange"><date-range>

Patch dateRange:

myForm.patch({ dateRange: { start: 20230606, end: 20230616 } })

The date range control is not updated.

Only controls matching the JSON pointers are updated:
"/dateRange/startDate", "/dateRange/endDate"

Need to also update controls matching "/dateRange".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant