Skip to content

Commit

Permalink
Merge branch 'patch-3.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Amphiluke committed Oct 2, 2021
2 parents 3afa5f0 + 062ad09 commit e77fe07
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 101 deletions.
9 changes: 7 additions & 2 deletions dist/handy-scroll.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
vue-handy-scroll v3.0.0
vue-handy-scroll v3.0.1
https://amphiluke.github.io/vue-handy-scroll/
*/
import { openBlock, createElementBlock, renderSlot, createElementVNode, normalizeClass } from 'vue';
Expand Down Expand Up @@ -127,7 +127,12 @@ var script = {
},

handleContainerFocus() {
setTimeout(() => this.syncWidget(), 0);
setTimeout(() => {
// The widget might be unmounted before the timer is triggered (issue Amphiluke/handy-scroll#14)
if (this.$refs && this.$refs.widget) {
this.syncWidget();
}
}, 0);
},

checkVisibility() {
Expand Down
4 changes: 2 additions & 2 deletions dist/handy-scroll.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions dist/handy-scroll.umd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
vue-handy-scroll v3.0.0
vue-handy-scroll v3.0.1
https://amphiluke.github.io/vue-handy-scroll/
*/
(function (global, factory) {
Expand Down Expand Up @@ -141,7 +141,12 @@ https://amphiluke.github.io/vue-handy-scroll/
handleContainerFocus: function handleContainerFocus() {
var this$1$1 = this;

setTimeout(function () { return this$1$1.syncWidget(); }, 0);
setTimeout(function () {
// The widget might be unmounted before the timer is triggered (issue Amphiluke/handy-scroll#14)
if (this$1$1.$refs && this$1$1.$refs.widget) {
this$1$1.syncWidget();
}
}, 0);
},

checkVisibility: function checkVisibility() {
Expand Down
Loading

0 comments on commit e77fe07

Please sign in to comment.