Vuestic UI is an open-source Vue 3 component library designed for rapid development, easy maintenance, and high accessibility. Maintained by Epicmax (@epicmaxco).
I'm trying to make some components (usually data tables) that can be optionally displayed in a modal. No problem so far... just wrap the VaModal around the component.
However, the component exposes one or mire functions that need to be called by the parent. This is where the problem starts. Assigning a ref to a component inside VaModal is always undefined, so the exposed functions can't be called.
First of all, you need to wait until the component is mounted. Second, make sure modal is visible. VaModal will not render any child component until modal is shown e.g. v-model must be true.
Vuestic-ui version: 1.10.3
Description
I'm trying to make some components (usually data tables) that can be optionally displayed in a modal. No problem so far... just wrap the VaModal around the component.
However, the component exposes one or mire functions that need to be called by the parent. This is where the problem starts. Assigning a ref to a component inside VaModal is always undefined, so the exposed functions can't be called.
Reproduction
Any ideas?