frayerjj-frontend 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/modal.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frayerjj-frontend",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "My base frontend for various projects",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/modal.js CHANGED
@@ -129,7 +129,8 @@ export const modal = {
129
129
  // Cycle through all AJAX Modals in DOM
130
130
  document.querySelectorAll('.ajax-modal').forEach(el => {
131
131
  message.verbose('Enabling AJAX Modal');
132
- el.addEventListener('click', () => {
132
+ el.addEventListener('click', ev => {
133
+ ev.preventDefault();
133
134
  message.verbose('Building AJAX Modal');
134
135
  let buttons;
135
136
  if (el.getAttribute('modal-info')) buttons = [{ text: 'OK' }];