@kizmann/nano-ui 0.8.11 → 0.8.13

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.13",
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)
@@ -596,7 +598,7 @@ export default {
596
598
 
597
599
  onUpdate()
598
600
  {
599
- if ( ! this.fixture ) {
601
+ if ( ! this.fixture || ! this.$refs.content ) {
600
602
  return;
601
603
  }
602
604