saloe 0.0.51 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/listener.cjs.js +1 -1
- package/dist/listener.es.js +1 -1
- package/package.json +1 -1
- package/src/listener.js +1 -1
package/dist/listener.cjs.js
CHANGED
|
@@ -152,7 +152,7 @@ const listener = ({
|
|
|
152
152
|
const fireAnchorClickListener = () => {
|
|
153
153
|
const anchors = document.querySelectorAll("a[on-click]");
|
|
154
154
|
anchors == null ? void 0 : anchors.forEach((anchor) => {
|
|
155
|
-
anchor.addEventListener(async (e) => {
|
|
155
|
+
anchor.addEventListener("click", async (e) => {
|
|
156
156
|
e.preventDefault();
|
|
157
157
|
const srcElement = anchor;
|
|
158
158
|
const event = "click";
|
package/dist/listener.es.js
CHANGED
|
@@ -150,7 +150,7 @@ const listener = ({
|
|
|
150
150
|
const fireAnchorClickListener = () => {
|
|
151
151
|
const anchors = document.querySelectorAll("a[on-click]");
|
|
152
152
|
anchors == null ? void 0 : anchors.forEach((anchor) => {
|
|
153
|
-
anchor.addEventListener(async (e) => {
|
|
153
|
+
anchor.addEventListener("click", async (e) => {
|
|
154
154
|
e.preventDefault();
|
|
155
155
|
const srcElement = anchor;
|
|
156
156
|
const event = "click";
|
package/package.json
CHANGED
package/src/listener.js
CHANGED
|
@@ -217,7 +217,7 @@ const listener = ({
|
|
|
217
217
|
const fireAnchorClickListener = () => {
|
|
218
218
|
const anchors = document.querySelectorAll('a[on-click]')
|
|
219
219
|
anchors?.forEach((anchor) => {
|
|
220
|
-
anchor.addEventListener(async (e) => {
|
|
220
|
+
anchor.addEventListener('click', async (e) => {
|
|
221
221
|
e.preventDefault()
|
|
222
222
|
|
|
223
223
|
const srcElement = anchor
|