saloe 0.0.55 → 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.
@@ -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 });
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saloe",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "description": "Tools for making web development easy and efficient",
5
5
  "type": "module",
6
6
  "scripts": {
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
  }