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