Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

CMenuOptionGroup throws a warning when passing an Array as a :value prop #497

Closed
Exilibris opened this issue Oct 29, 2021 · 1 comment · Fixed by #503
Closed

CMenuOptionGroup throws a warning when passing an Array as a :value prop #497

Exilibris opened this issue Oct 29, 2021 · 1 comment · Fixed by #503

Comments

@Exilibris
Copy link

Exilibris commented Oct 29, 2021

Describe the bug
Documentation says CMenuOptionGroup accepts string, number, Array as a value of the :value attribute. However, when array is passed a warning is thrown in the console:

Invalid prop: type check failed for prop "value". Expected String, Number, got Array

However, components itself work as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Create a menu with the following contents in the dev environment:
<c-menu-option-group title="Country" type="checkbox" :value="['email','phone']">
      <c-menu-item-option value="email">Email</c-menu-item-option>
      <c-menu-item-option value="phone">Phone</c-menu-item-option>
      <c-menu-item-option value="country">Country</c-menu-item-option>
</c-menu-option-group>
  1. See the error in the console.

Expected behavior
No errors shown, since Array value for this prop is documented.

Desktop (please complete the following information):

  • MacOS latest
  • Chrome latest
@peoray
Copy link
Contributor

peoray commented Dec 22, 2021

Thank you @Exilibris. This will be fixed in the next release. I'll notify you when that happens :)

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

Successfully merging a pull request may close this issue.

2 participants