@rebilly/instruments 3.13.2-beta.0 → 3.14.2-beta.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebilly/instruments",
3
- "version": "3.13.2-beta.0",
3
+ "version": "3.14.2-beta.0",
4
4
  "author": "Rebilly",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -16,7 +16,7 @@ export const baseMethodSelectorHTML = (compactExpressInstruments) => `
16
16
  <span data-rebilly-i18n="form.expressCheckout" class="rebilly-instruments-express-methods-label">Express checkout</span>
17
17
  <div class="rebilly-instruments-express-methods-container"></div>
18
18
  </div>
19
- <div class="rebilly-instruments-divider">
19
+ <div data-rebilly-instruments="divider" class="rebilly-instruments-divider">
20
20
  <span class="rebilly-instruments-divider-label" data-rebilly-i18n="form.or">Or</span>
21
21
  </div>
22
22
  <div class="rebilly-instruments-methods"></div>
@@ -51,8 +51,8 @@ export async function mountMethodSelector({ state }) {
51
51
  }
52
52
  } else {
53
53
  EXPRESS_METHODS_CONTAINER.style.display = 'none';
54
- document.querySelector('.rebilly-instruments-divider')
55
- .style.display = 'none';
54
+ document.querySelectorAll('[data-rebilly-instruments="divider"]')
55
+ .forEach(el => { el.style.display = 'none' });
56
56
  }
57
57
 
58
58
  if (METHODS.length) {
@@ -73,6 +73,8 @@ export async function mountMethodSelector({ state }) {
73
73
  state.iframeComponents.form.push(iframe);
74
74
  } else {
75
75
  METHODS_CONTAINER.style.display = 'none';
76
+ document.querySelectorAll('[data-rebilly-instruments="divider"]')
77
+ .forEach(el => { el.style.display = 'none' });
76
78
  }
77
79
  }
78
80