Topic: Indeterminate checkboxes not working

Marvin Herbold priority asked 3 years ago


When setting the "indeterminate" property of a checkbox to "true" the UI should render a "-" in the checkbox. It does not do this properly. See code snippet.

https://mdbootstrap.com/snippets/standard/marvin_herbold/3202123

You can actually see the indeterminate "-" work if you right click on the checkbox. You can also briefly see it when you left click on the checkbox. However it does not render otherwise. Please fix or let me know if I am missing something.


Marvin Herbold priority answered 3 years ago


Why would you not support indeterminate checkbox states? Native Bootstrap 5 supports it. MDB is supposed to be a superset or improvement of Bootstrap, not a subset and remove features from Bootstrap.

UNNdev is correct - this seems like a bug since doing certain actions does make the indeterminate state show up.


Dawid Wajszczuk staff commented 3 years ago

We will take this into consideration in our future releases.


Dawid Wajszczuk staff answered 3 years ago


Hi,

As for now, we don't provide support for indeterminate checkbox. Maybe in the future we will add this functionality. But you can try this workaround from this snippet https://mdbootstrap.com/snippets/standard/d-wajszczuk/3203756#css-tab-view.

Keep coding,
Dawid


UNNdev priority commented 3 years ago

This is obviously a bug, as you do have support for it when the checkbox is focused.


UNNdev priority commented 3 years ago

This looks like a better work-around: https://mdbootstrap.com/snippets/standard/kayem79/3204076#css-tab-view



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: Yes