Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit fd0d63b

Browse files
fix: add function to return empty object in options prop of Lenis.vue… (#7)
* fix: add function to return empty object in options prop of Lenis.vue to prevent side effects with vue-docgen * removed test code * updated package version --------- Co-authored-by: Simon Goetz <simon@milkshake.studio>
1 parent e61c38d commit fd0d63b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-lenis",
3-
"version": "1.1.0-beta.13",
3+
"version": "1.1.1",
44
"license": "MIT",
55
"type": "module",
66
"repository": {

src/runtime/components/lenis.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const emit = defineEmits(["scroll", "initiated"]);
2929
const props = defineProps({
3030
options: {
3131
type: Object,
32-
default: {},
32+
default: () => {},
3333
},
3434
});
3535
@@ -138,7 +138,5 @@ html.lenis {
138138
.lenis.lenis-scrolling iframe {
139139
pointer-events: none;
140140
}
141-
#test {
142-
width: 90vw;
143-
}
141+
144142
</style>

0 commit comments

Comments
 (0)