We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
activate
deactivate
In the Vue2 version (1.x) the following was valid:
1.x
<template> <FocusTrap ref="focusTrap"> <!-- Content here --> </FocusTrap> </template> <script> export default { methods: { manuallyDeactivate() { this.$refs.focusTrap.deactivate() } } } </script>
The activate and deactivate methods were exposed on the component. The documentation speaks to their usage as well.
This is no longer possible in the Vue3 (2.x / 3.x) version as the methods are not being exposed on the component.
The text was updated successfully, but these errors were encountered:
You might need to do this.$refs.focusTrap.proxy.deactivate()
this.$refs.focusTrap.proxy.deactivate()
Sorry, something went wrong.
Gave that a shot but it didn't work.
Ah right, we need vuejs/rfcs#210
fix: Re-exposed the activate/deactivate methods on component
444bd7a
This closes posva#374
Successfully merging a pull request may close this issue.
In the Vue2 version (
1.x
) the following was valid:The
activate
anddeactivate
methods were exposed on the component. The documentation speaks to their usage as well.This is no longer possible in the Vue3 (2.x / 3.x) version as the methods are not being exposed on the component.
The text was updated successfully, but these errors were encountered: