You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to conditionally toggle focus trapping in a component. Unfortunately, it looks like FocusTrap does not expose any props to activate/deactivate focus trapping, so I was hoping I could use the FocusTrap as a dynamic element like this - using SFC & script setup syntax:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to conditionally toggle focus trapping in a component. Unfortunately, it looks like FocusTrap does not expose any props to activate/deactivate focus trapping, so I was hoping I could use the FocusTrap as a dynamic element like this - using SFC & script setup syntax:
However, that does not seem to work: while the input and the wrapper is rendered, no focus trapping occurs.
I'm not terribly proficient in Vue, so if anybody can point out why this does not work, I'd greatly appreciate it.
Beta Was this translation helpful? Give feedback.
All reactions