Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add expose option to components #388

Open
nandi95 opened this issue Jan 16, 2022 · 3 comments
Open

Add expose option to components #388

nandi95 opened this issue Jan 16, 2022 · 3 comments

Comments

@nandi95
Copy link
Contributor

nandi95 commented Jan 16, 2022

Set expose on components where returned values are not expected to be used externally https://v3.vuejs.org/api/options-data.html#expose

@nandi95 nandi95 changed the title Add expose otpion to components Add expose option to components Jan 17, 2022
@nandi95
Copy link
Contributor Author

nandi95 commented Feb 22, 2022

dropdown: 418982f

@nandi95
Copy link
Contributor Author

nandi95 commented Feb 22, 2022

modal: 6a41b55

@nandi95
Copy link
Contributor Author

nandi95 commented Jun 30, 2022

It might not be desirable to add expose: [] because when the component is accessed based on a ref it will be undefined and the user might still wish to access the base element the vue handles (to get its dimensions for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant