Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix object prop default error #38

Open
wants to merge 3 commits into
base: 3.0
Choose a base branch
from
Open

Fix object prop default error #38

wants to merge 3 commits into from

Conversation

zwubs
Copy link

@zwubs zwubs commented Dec 24, 2021

Problem

When using the module through npm an error occurs stating:

[Vue warn]: Invalid default value for prop "option": Props with type Object/Array must use a factory function to return the default value.

Solution

Within 'waterfall.vue' changing the 'option' prop to state this:
default: () => {}
rather than this: default: {}

Files Changed

  • waterfall.vue: Updated line 15 to previously mentioned code.
  • vue2-waterfall.js: Rebuilt file to incorporate aforementioned changes.

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

Successfully merging this pull request may close these issues.

1 participant