Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2022-05-03 02:59:47 +0300
committerGitHub <noreply@github.com>2022-05-03 02:59:47 +0300
commit66d31161bafc6ac738d19f4f2e75bd765cb6a877 (patch)
treea09b0c05318330cc457df4cd17ed9ad11fab978d
parentb9043debf14b422f4b2045a55f2f37b65fa9bb31 (diff)
Fix vue-directive selector, make sure to select root node if it has vue-directive, not vue-entry (#19165)
-rw-r--r--plugins/Morpheus/javascripts/piwikHelper.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Morpheus/javascripts/piwikHelper.js b/plugins/Morpheus/javascripts/piwikHelper.js
index 6897634b6c..ab0a8eb8b5 100644
--- a/plugins/Morpheus/javascripts/piwikHelper.js
+++ b/plugins/Morpheus/javascripts/piwikHelper.js
@@ -258,8 +258,11 @@ window.piwikHelper = {
},
compileVueDirectives: function (selector) {
- $('[vue-directive]', selector).add($(selector).filter('[vue-entry]')).each(function () {
+ $('[vue-directive]', selector).add($(selector).filter('[vue-directive]')).each(function () {
var vueDirectiveName = $(this).attr('vue-directive');
+ if (!vueDirectiveName) {
+ return;
+ }
var parts = vueDirectiveName.split('.');
if (parts.length !== 2) {