@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
@@ -190,8 +190,10 @@ export default {
|
|
190
190
|
|
191
191
|
onScrollTo(x = 0, y = 0)
|
192
192
|
{
|
193
|
-
this.$refs.content
|
194
|
-
|
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
|
|