- problem: modals inside relative element
- solution: only 1 modal with portal with positon escaping
Portals work like inverted slots in Vue, but they don't render the slot inside the components, but somehwere else on your app or maybe even outside the app. Who knows :D
- Install Portal 2.0 Library
- Add Portals to the App
portal
componentportal-target
component- seding first data to through the portal
- turn off the portal
- 1 receive multiple portals in one target
- 1a changing the order of tne ported items
- remove the wrapping of the portal target
- change the rendered html element of the portal
explain portal
and portal-target
components
disabling portal-target
and why do we need mounting-portal
- tooltips
- modals
- creating reusable modal portal
- passing portal actions via scoped slots
- add focus lock to the modal
- disable scrolling then modal is open
- portals in another window
mounting-portal
component - portals outside of vue
- portals with scoped slots