> In unpoly v2 I updated this line:
>
> var $modal = $(".up-modal-content");
>
> to:
>
> var $modal = $("up-drawer-content");
This looks correct in case you're opening an overlay with the "drawer"
mode. If you're using the "modal" mode you need to select
'up-modal-content'.
You might want to add a `debugger` statement before the line to see if
you're selecting the content element as expected.
> "This issue occurs because Bootstrap modals tend to steal focus from
> other elements outside of the modal" [1]
Just FYI: This is an accessibility feature. To support screen readers
focus must be trapped within a modal overlay. Unpoly 2 does the same.
Best regards
Henning