Hi! I have just browsed at your library a little bit, so i haven't had the time to actually check this, and it's just a guess that you might want to look into.
Scenario 1:
What if the modal has no focusable elements within? Will it still trap focus correctly?
Scenario 2:
What if I'm dynamically changing content within a modal? E.g. I might have a multi-step form inside of it or something. And one of the steps has no focusable elements. Will the focus trap be lost when we reach this step?
Hi! I have just browsed at your library a little bit, so i haven't had the time to actually check this, and it's just a guess that you might want to look into.
Scenario 1: What if the modal has no focusable elements within? Will it still trap focus correctly?
Scenario 2: What if I'm dynamically changing content within a modal? E.g. I might have a multi-step form inside of it or something. And one of the steps has no focusable elements. Will the focus trap be lost when we reach this step?