Focus trap on Modal with custom layout #398
Unanswered
nicolaidanekov
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I was able to borrow your FocusTrap.razor and wrap my modal in it. That worked perfectly. 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
I am trying to implement a Blazored Modal with a Bootstrap look and feel.
I am using the ModalService with the options "var options = new ModalOptions {UseCustomLayout = true};" as described here: #189
This allows me to create something that looks like Bootstrap, but it means I lose everything that is awesome about the Blazored Modal - including Focus trap.
Is there a way for me to use focus trap on a modal with a custom layout? Or is there possibly an easier way for me to achieve Bootstrap layout while using the Blazored Modal?
@chrissainty @dfkeenan
Best regards,
Nicolai
Beta Was this translation helpful? Give feedback.
All reactions