Skip to content

Commit

Permalink
fix: analytics directive
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieferrer committed Oct 9, 2024
1 parent 9e1a7f7 commit da29cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/kv-analytics-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default {
};

app.directive('kv-track-event', {
bind: (el, binding) => {
beforeMount: (el, binding) => {
// TODO: add arg for once, submit + change events
if (typeof el === 'object' && binding.value) {
el.addEventListener('click', () => {
Expand Down

0 comments on commit da29cc4

Please sign in to comment.