saasufy-components 3.15.0 → 3.15.1

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/confirm-modal.js +5 -5
  2. package/package.json +1 -1
package/confirm-modal.js CHANGED
@@ -24,7 +24,7 @@ class ConfirmModal extends HTMLElement {
24
24
  show(message, confirmCallback) {
25
25
  let overlayModal = this.querySelector('overlay-modal');
26
26
  if (overlayModal) {
27
- overlayModal.classList.remove('hidden');
27
+ overlayModal.removeAttribute('style');
28
28
  }
29
29
  this.confirmCallback = confirmCallback;
30
30
  this.hidden = false;
@@ -38,7 +38,7 @@ class ConfirmModal extends HTMLElement {
38
38
  let cancelButtonLabel = this.getAttribute('cancel-button-label') || 'Cancel';
39
39
 
40
40
  this.innerHTML = `
41
- <overlay-modal class="${this.hidden ? 'hidden' : 'visible'}">
41
+ <overlay-modal${this.hidden ? ' style="display: none;"' : ''}>
42
42
  <div slot="title">${title}</div>
43
43
  <div class="confirm-modal-content" slot="content">
44
44
  <div>${message}</div>
@@ -52,16 +52,16 @@ class ConfirmModal extends HTMLElement {
52
52
 
53
53
  let overlayModal = this.querySelector('overlay-modal');
54
54
  overlayModal.addEventListener('close', () => {
55
- overlayModal.classList.add('hidden');
55
+ overlayModal.style.display = 'none';
56
56
  });
57
57
  let cancelButton = this.querySelector('.modal-cancel-button');
58
58
  cancelButton.addEventListener('click', () => {
59
- overlayModal.classList.add('hidden');
59
+ overlayModal.style.display = 'none';
60
60
  this.dispatchEvent(new CustomEvent('cancel'));
61
61
  });
62
62
  let confirmButton = this.querySelector('.modal-confirm-button');
63
63
  confirmButton.addEventListener('click', () => {
64
- overlayModal.classList.add('hidden');
64
+ overlayModal.style.display = 'none';
65
65
  this.dispatchEvent(new CustomEvent('confirm'));
66
66
  this.confirmCallback && this.confirmCallback();
67
67
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasufy-components",
3
- "version": "3.15.0",
3
+ "version": "3.15.1",
4
4
  "description": "Components for Saasufy.",
5
5
  "main": "index.js",
6
6
  "scripts": {