DEV Warning: type check failed for enum prop
Vue version
3.2.45
Link to minimal reproduction
Steps to reproduce
- Select a value
- Console warning:
Invalid prop: type check failed for prop "modelValue". Expected Null | Array
What is expected?
No warning.
What is actually happening?
Props | Vue | Check enum |
---|---|---|
enum |
null |
Skip check |
enum | enum[] |
[null, Array] |
Check for null then warning |
System Info
No response
Any additional comments?
No response
fix in https://github.com/vuejs/core/commit/2e074a70091e76359e930e733785100cd7dc66ed was incorrect.