@kizmann/nano-ui 0.8.11 → 0.8.12

Sign up to get free protection for your applications and to get access to all the features.
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)