MilkshakeStudio / nuxt-lenis

Nuxt adaptation for @darkroomengineering/lenis
https://github.com/darkroomengineering/lenis
30 stars 4 forks source link

fix: add function to return empty object in options prop of Lenis.vue… #7

Closed LucaMargadant closed 4 months ago

LucaMargadant commented 4 months ago

First: Thank you a lot for this module!

Today i just encountered an issue, when lenis is running in a project that uses vue-docgen (Storybook for Nuxt for example)

A default value needs to be a function when your type is an object or array

This PR will resolve this issue

Best, Luca

Slgoetz commented 4 months ago

Hey @LucaMargadant. I will take a look at this today and get it merged asap.

Slgoetz commented 4 months ago

@LucaMargadant v1.1.1

LucaMargadant commented 4 months ago

@Slgoetz Thanks a lot! :)