saloe 0.0.54 → 0.0.56
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 +0 -1
- package/dist/listener.es.js +0 -1
- package/package.json +1 -1
- package/src/listener.js +3 -1
package/dist/listener.cjs.js
CHANGED
|
@@ -153,7 +153,6 @@ const listener = ({
|
|
|
153
153
|
const anchors = document.querySelectorAll("a[on-click]");
|
|
154
154
|
anchors == null ? void 0 : anchors.forEach((anchor) => {
|
|
155
155
|
anchor.addEventListener("click", async (e) => {
|
|
156
|
-
e.preventDefault();
|
|
157
156
|
const srcElement = anchor;
|
|
158
157
|
const event = "click";
|
|
159
158
|
const listeners = await fetchListeners({ srcElement, event, e });
|
package/dist/listener.es.js
CHANGED
|
@@ -151,7 +151,6 @@ const listener = ({
|
|
|
151
151
|
const anchors = document.querySelectorAll("a[on-click]");
|
|
152
152
|
anchors == null ? void 0 : anchors.forEach((anchor) => {
|
|
153
153
|
anchor.addEventListener("click", async (e) => {
|
|
154
|
-
e.preventDefault();
|
|
155
154
|
const srcElement = anchor;
|
|
156
155
|
const event = "click";
|
|
157
156
|
const listeners = await fetchListeners({ srcElement, event, e });
|
package/package.json
CHANGED
package/src/listener.js
CHANGED
|
@@ -218,7 +218,7 @@ const listener = ({
|
|
|
218
218
|
const anchors = document.querySelectorAll('a[on-click]')
|
|
219
219
|
anchors?.forEach((anchor) => {
|
|
220
220
|
anchor.addEventListener('click', async (e) => {
|
|
221
|
-
e.preventDefault()
|
|
221
|
+
// e.preventDefault()
|
|
222
222
|
|
|
223
223
|
const srcElement = anchor
|
|
224
224
|
const event = 'click'
|
|
@@ -228,6 +228,8 @@ const listener = ({
|
|
|
228
228
|
if (srcElement?.removeAttribute) srcElement.removeAttribute(`on-${event}`)
|
|
229
229
|
|
|
230
230
|
console.log('--- anchor.href =', anchor.href)
|
|
231
|
+
|
|
232
|
+
// location.href = anchor.href
|
|
231
233
|
})
|
|
232
234
|
})
|
|
233
235
|
}
|