This repository was archived by the owner on Sep 20, 2024. It is now read-only.
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
Description
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:
- 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>
- 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
Metadata
Metadata
Assignees
Labels
No labels