chakra-ui / chakra-ui-vue-next

⚡️ The next most epic version of Chakra UI Vue based on Vue 3 🚀(WIP)
https://next.vue.chakra-ui.com
MIT License
261 stars 33 forks source link

Impossible to have "checked" and "disabled" on a checkbox #304

Closed Shyrro closed 1 year ago

Shyrro commented 1 year ago

Bug report

Current checkbox doesn't allow to have a disabled AND checked checkbox. Noticed this while writing the docs.

Describe the bug

I want to have this :

<c-stack spacing="5" direction="row">
  <c-checkbox is-disabled>Value 1</c-checkbox>
  <c-checkbox is-disabled default-checked>
    Value 2
  </c-checkbox>
</c-stack>

working.

To reproduce

Import the checkbox and paste the code above. Notice that the checkbox isn't checkx and the attributes for checked are not applied.

Expected behavior

To have a checkbox that can be both checked and disabled.

TylerAPfledderer commented 1 year ago

@Shyrro should this issue be considered closed?

Shyrro commented 1 year ago

Hey @TylerAPfledderer , yes i think so, i just don't think it's released yet, it's just on the @dev tag