@nys-cui/cui-formpill 0.2.5 → 0.2.6

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
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "main": "./dist/js/cui-formpill.js",
8
8
  "type": "module",
9
- "version": "0.2.5",
9
+ "version": "0.2.6",
10
10
  "scripts": {
11
11
  "clean": "rm -rf ./dist",
12
12
  "build": "npm run clean && cui --dep",
@@ -1298,7 +1298,9 @@ class CUI_FORMPILL extends HTMLElement {
1298
1298
 
1299
1299
  if (this._state.dMenuPopover) {
1300
1300
  this._state.dMenuPopover.state.bOpen = false;
1301
- document.body.removeChild(this._state.dMenuPopover)
1301
+ if(this._state.dMenuPopover.isConnected) {
1302
+ document.body.removeChild(this._state.dMenuPopover);
1303
+ }
1302
1304
  this._state.dMenuPopover = null;
1303
1305
  }
1304
1306