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

[Data Objects] Checkbox visualization when value is null #4788

Open
bramstroker opened this issue Jul 30, 2019 · 1 comment

Comments

@bramstroker
Copy link
Contributor

commented Jul 30, 2019

Expected behavior

In Pimcore 6 a checkbox seems to have a new state null.
When this state is selected and I save the object I expect this to be somehow visible in the GUI. Preferable by the field being grayed out and value of parent object shown. This is how it is done with all the other fields.

Actual behavior

The checkbox has a null state, but there is no differentiation in the UI. It looks like the checkbox is unchecked, but in reality the value is checked, because it is inherited from the parent.

Steps to reproduce

  • Create a variant object of a class having a checkbox field
  • Click the trashbin next to the checkbox. Now the checkbox border is turning blue (which is a very strange choice imo consistency wise).
  • Click "save and publish"
  • Reload the object
  • Now the checkbox does not have the blue border, so there is no indication of a null state.

Images

Here are some images describing my issue.

@brusch brusch changed the title Confusing behaviour checkboxes in Pimcore 6 [Data Objects] Checkbox visualization when value is null Jul 30, 2019

@bramstroker

This comment has been minimized.

Copy link
Contributor Author

commented Aug 1, 2019

This issue seems to be related to the default value of the checkbox. When I change the checkbox default value to null everything is working as expected. When it is set to false this visualization issue arrises

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.