Closed LinusBorg closed 5 years ago
https://github.com/LinusBorg/vue-simple-portal/blob/72cdea336b498b233ee5db8df0fe1bd4371ff7d5/src/components/Portal.js#L62-L69
The above lines belong inside of the mount() method, as we want the append prop to define insert position of the portal'ed content, not of the container element.
mount()
append
Also should be named "prepend". 🤭
https://github.com/LinusBorg/vue-simple-portal/blob/72cdea336b498b233ee5db8df0fe1bd4371ff7d5/src/components/Portal.js#L62-L69
The above lines belong inside of the
mount()
method, as we want theappend
prop to define insert position of the portal'ed content, not of the container element.Also should be named "prepend". 🤭