From 189edb1ab37764abaeb7b094a0b54e78acb95fb8 Mon Sep 17 00:00:00 2001 From: kai Date: Fri, 28 Apr 2023 11:52:45 +0200 Subject: [PATCH] Check onShown option instead of onShow when setting shown listener --- src/components/Tippy.vue | 2 +- src/components/TippyNoStyles.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Tippy.vue b/src/components/Tippy.vue index f3bc474..50f84d1 100644 --- a/src/components/Tippy.vue +++ b/src/components/Tippy.vue @@ -177,7 +177,7 @@ export default { }; } - if (!this.options.onShow && this.$listeners && this.$listeners["shown"]) { + if (!this.options.onShown && this.$listeners && this.$listeners["shown"]) { this.options.onShown = (...args) => { return this.$listeners["shown"].fns(...args); }; diff --git a/src/components/TippyNoStyles.vue b/src/components/TippyNoStyles.vue index 766d61c..4ec0ad3 100644 --- a/src/components/TippyNoStyles.vue +++ b/src/components/TippyNoStyles.vue @@ -176,7 +176,7 @@ export default { }; } - if (!this.options.onShow && this.$listeners && this.$listeners["shown"]) { + if (!this.options.onShown && this.$listeners && this.$listeners["shown"]) { this.options.onShown = (...args) => { return this.$listeners["shown"].fns(...args); };