@kizmann/nano-ui 0.8.11 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/nano-ui",
3
- "version": "0.8.11",
3
+ "version": "0.8.12",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -190,8 +190,10 @@ export default {
190
190
 
191
191
  onScrollTo(x = 0, y = 0)
192
192
  {
193
- this.$refs.content.scrollTop = y;
194
- this.$refs.content.scrollLeft = x;
193
+ if ( this.$refs.content ) {
194
+ this.$refs.content.scrollTop = y;
195
+ this.$refs.content.scrollLeft = x;
196
+ }
195
197
  },
196
198
 
197
199
  scrollIntoView(selector, delay = 0)