@overlastic/vanilla 0.7.0 → 0.8.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.
@@ -97,7 +97,8 @@ var OverlaysVanilla = (() => {
97
97
  const deferred = createDeferred();
98
98
  const name = defineName(options3.id, options3.autoIncrement);
99
99
  const index = getIndex(options3.id);
100
- const container = globalContainer ? defineGlobalElement(name, options3.root) : document.body;
100
+ const root = globalContainer ? options3.root : document.body;
101
+ const container = defineGlobalElement(name, root);
101
102
  mount(instance, props, Object.assign(options3, {
102
103
  position: context.position,
103
104
  id: name,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@overlastic/vanilla",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.8.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/hairyf/overlastic#readme",
7
7
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@overlastic/core": "^0.7.0"
28
+ "@overlastic/core": "^0.8.1"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsup src/index.ts",