forstok-ui-lib 5.8.8 → 5.8.9

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": "forstok-ui-lib",
3
- "version": "5.8.8",
3
+ "version": "5.8.9",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -22,8 +22,12 @@ const DropDownComponent = ({ children, title, subTitle, $externalWidth, $externa
22
22
 
23
23
  const evResetDropdown = () => {
24
24
  const containerRef = document.getElementsByClassName('_refContainer is-shown') as HTMLCollectionOf<HTMLElement>;
25
+ const bodyEl = document.getElementsByTagName('BODY')[0] as HTMLBodyElement;
25
26
  if (containerRef.length) {
27
+ bodyEl.classList.remove('is-immuned');
26
28
  for (let i = 0; i < containerRef.length; i++) {
29
+ const overlayEl = containerRef[i].querySelector(`._refDropdownOverlay`) as HTMLDivElement;
30
+ overlayEl.style.display = 'none';
27
31
  containerRef[i].classList.remove('is-shown');
28
32
  }
29
33
  }
@@ -51,7 +55,7 @@ const DropDownComponent = ({ children, title, subTitle, $externalWidth, $externa
51
55
  return;
52
56
  }
53
57
  const containerEl = buttonEl.closest('._refContainer') as HTMLElement;
54
- const bodyEl = document.getElementsByTagName("BODY")[0] as HTMLBodyElement;
58
+ const bodyEl = document.getElementsByTagName('BODY')[0] as HTMLBodyElement;
55
59
  if (containerEl) {
56
60
  const overlayEl = containerEl.querySelector(`._refDropdownOverlay`) as HTMLDivElement;
57
61
  const isCurOpen = containerEl.classList.contains('is-shown');
@@ -60,7 +64,7 @@ const DropDownComponent = ({ children, title, subTitle, $externalWidth, $externa
60
64
  if (!isCurOpen) {
61
65
  evResetDropdown();
62
66
  overlayEl.style.display = 'block';
63
- bodyEl.classList.add("is-immuned")
67
+ bodyEl.classList.add('is-immuned');
64
68
  containerEl.classList.add('is-shown');
65
69
  setTimeout(() => {
66
70
  if (portalId) {
@@ -89,7 +93,7 @@ const DropDownComponent = ({ children, title, subTitle, $externalWidth, $externa
89
93
  onClick && onClick(e);
90
94
  } else {
91
95
  overlayEl.style.display = 'none';
92
- bodyEl.classList.remove("is-immuned");
96
+ bodyEl.classList.remove('is-immuned');
93
97
  containerEl.classList.remove('is-shown');
94
98
  setTimeout(() => {
95
99
  if (portalId) {