Fix incorrect value registration in stimulus controller
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ import { Controller } from 'stimulus'
|
|||||||
|
|
||||||
export default class extends Controller {
|
export default class extends Controller {
|
||||||
|
|
||||||
static values = [ 'event' ]
|
static values = { event: String }
|
||||||
|
|
||||||
trigger() {
|
trigger() {
|
||||||
window.dataLayer = window.dataLayer || []
|
window.dataLayer = window.dataLayer || []
|
||||||
|
|||||||
Reference in New Issue
Block a user