@reviewpush/rp-treeselect 0.0.10 → 0.0.12

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": "@reviewpush/rp-treeselect",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "repository": "reviewpush/rp-treeselect",
5
5
  "main": "dist/rp-treeselect.cjs.js",
6
6
  "unpkg": "dist/rp-treeselect.umd.min.js",
@@ -20,7 +20,6 @@
20
20
  },
21
21
 
22
22
  render() {
23
- console.log(this)
24
23
  if (!this.instance.name || this.instance.disabled || !this.instance.hasValue) return null
25
24
 
26
25
  let stringifiedValues = this.instance.internalValue.map(stringifyValue)
@@ -153,13 +153,17 @@
153
153
  methods: {
154
154
  setup() {
155
155
  const el = document.createElement('div')
156
+ el.setAttribute('id', `menu-target-${this._uid}`)
156
157
  document.body.appendChild(el)
157
158
 
158
- this.portalTarget = createApp({
159
- el,
159
+
160
+ const targetApp = {
160
161
  parent: this,
161
162
  ...PortalTarget,
162
- })
163
+ }
164
+
165
+ this.portalTarget = createApp(targetApp)
166
+ this.portalTarget.mount(`#menu-target-${this._uid}`)
163
167
  },
164
168
 
165
169
  teardown() {