Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use portalling for <b-modal>, <b-popover>/<b-tooltip>, and <b-toast> components #2261
This issue is more of a note to the core team.
Consider using portal-vue for placing modals, tooltips, popovers, and toasts at the bottom of the document. Although we need to wait for release 2.0.0 (as there is a feature LinusBorg/portal-vue#161 needed that will be available in release 2)
I've been working on the new Bootstrap V4.2 toast component which needs portal-vue's features (as toasts need to be stacked in the same container), and have found that it will be also very handy for modals (for fixing z-index/stacking issues) and tooltips/popovers.
Currently portal-vue renders placeholder elements for the
It would be great if the documentation was updated to specify exactly which components needs portal to work. Right now it says "Toasts etc". E.g if I was only using
Right now, the only component using PortalVue is Toasts (modal is using a custom portallaing component (built into BootstrapVue).
If you were importing only individual components, only the components that use PortalVue (or any external dependency) would import it into your bundle. Importing, say, the layout components only would not import PortalVue into your bundle.