a-frame-components
Advanced tools
Comparing version 1.0.338 to 1.0.339
@@ -175,2 +175,9 @@ import { useEffect, useState, useRef } from 'react'; | ||
raiseCustomEvent('frame-update-attribute', { name: name, value: value }, el, { bubbles: false }); | ||
var handle_1 = function (evt) { | ||
evt.preventDefault(); | ||
evt.stopPropagation(); // Stop the event from bubbling up | ||
raiseCustomEvent('frame-update-attribute', { name: name, value: value }, el, { bubbles: false }); | ||
el.removeEventListener('frame-update-init', handle_1); | ||
}; | ||
el.addEventListener('frame-update-init', handle_1); | ||
} | ||
@@ -186,2 +193,3 @@ } | ||
}); | ||
raiseCustomEvent('frame-update-init', {}, undefined); | ||
} | ||
@@ -188,0 +196,0 @@ export function findFrameElement(props) { |
{ | ||
"name": "a-frame-components", | ||
"version": "1.0.338", | ||
"version": "1.0.339", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -205,2 +205,9 @@ import { useEffect, useState, useRef } from 'react'; | ||
raiseCustomEvent('frame-update-attribute', { name, value }, el, { bubbles: false }); | ||
const handle = (evt: any) => { | ||
evt.preventDefault(); | ||
evt.stopPropagation(); // Stop the event from bubbling up | ||
raiseCustomEvent('frame-update-attribute', { name, value }, el, { bubbles: false }); | ||
el.removeEventListener('frame-update-init', handle); | ||
}; | ||
el.addEventListener('frame-update-init', handle) | ||
} | ||
@@ -219,2 +226,3 @@ } | ||
}) | ||
raiseCustomEvent('frame-update-init', {}, undefined) | ||
} | ||
@@ -221,0 +229,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1793932
30697