Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Problem to popular select #13

Closed
quinhone opened this issue Dec 4, 2018 · 3 comments
Closed

Problem to popular select #13

quinhone opened this issue Dec 4, 2018 · 3 comments

Comments

@quinhone
Copy link

quinhone commented Dec 4, 2018

Invalid default value for prop "options": Props with type Object/Array must use a factory function to return the default value.

but the select is being populated correctly.
return_vue

@godbasin
Copy link
Owner

godbasin commented Dec 5, 2018

Please leave more detail, as well as your code here.

@RangelReale
Copy link

Looks like newest Vue don't allow initialization of array prop as a value, it must be a function now:
vuejs/vue#1032

props: {
  arr: {
    type: Array,
    default: function () { return [] }
  }
}

@godbasin
Copy link
Owner

godbasin commented Jan 9, 2019

Version 0.3.2 has fixed this.

@godbasin godbasin closed this as completed Jan 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants