Using the multiple Dialog in same page throws error: There are no focusable elements inside the <FocusTrap /> #2578
Unanswered
Aravinda93
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am creating a reusable Dialog modal in my application and it works fine when I use it once in my page but when I use more than once then I get the error:
There are no focusable elements inside the <FocusTrap />
.Following is my reusable Dialog component from HeadlessUI in my Vue3/Nuxt 3 application:
ExtensionModal.vue
:I am using this component twice in my application:
pages/view.vue
:When I click on the button to open modal then I get the error:
The installation and everything else is correct because it works fine when I use only one instance of the child component in my
view.vue
page:I am getting the error only when i use it more than once in my application. Not sure what am I doing wrong here. Do I need to pass any additional parameter or add any missing information?
Beta Was this translation helpful? Give feedback.
All reactions