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

[BUG]: Umb.PropertyEditorUi.DatePicker doesn't reset when the underlying model is reset #16693

Closed
mattbrailsford opened this issue May 22, 2024 · 1 comment

Comments

@mattbrailsford
Copy link
Contributor

Describe the bug
If I have a Umb.PropertyEditorUi.DatePicker property rendering in a umb-property-dataset, and I reset the properties bound to that dataset, most property editors reset their value, but the date picker doesn't appear to do so.

This should also reset it's value back to the default if the model changes in this way.

To Reproduce
Steps to reproduce the behavior:

  1. Create an editor UI that renders an umb-property that uses a Umb.PropertyEditorUi.DatePicker inside a umb-property-dataset
  2. Setup a state to hold the property values
  3. Bind the umb-property-dataset to the property values collection
  4. Setup a button that when clicked, resets the property values collection to []

Expected behavior
I would expect the date picker to reset

Desktop (please complete the following information):

@iOvergaard iOvergaard transferred this issue from umbraco/Umbraco.CMS.Backoffice Jun 27, 2024
@iOvergaard
Copy link
Contributor

I just tested this on 14.1.1 and was able to clear the value through the UMB_PROPERTY_DATASET_CONTEXT. I believe it was fixed because of umbraco/Umbraco.CMS.Backoffice#2115, which got released in 14.1.1, but it could have been something else. I'll mark this as completed.

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

No branches or pull requests

2 participants