-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Can not focus in modal popover input field #1464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Removing the tabidex on modal-content will break accessibility (for screen reader users and keyboard only users). Currently popovers and tooltips get appended to the We might need to change that to append to |
To currently get around this, wrap your modal content in a <b-modal ...>
<div id="my-container">
<!-- other modal content here -->
<b-btn id="my-button">Add</b-btn>
<b-popover target="my-button" container="my-container" title="Title">
<label for="my-input">Input</label>
<b-form-input id="my-input"></b-form-input>
</b-popover>
</div>
</b-modal>
This will ensure that your popover is within the _enforce focus_ region of the modal. |
Ensures that interactive popovers (i.e. with input(s)) are inside the enforce focus tab ring cycle Fixes #1464
This fix will be available in the next release (v1.4.0) |
It is working perfectly good. thank you @tmorehouse vue-bootstrap is best :) |
v1.4.0 has been released, which now appends the tooltip/popover to the modal-content container rather than the modal outer container. |
the scenario is a bit complex. I am using bootstrap-vue modal and popover. I want to display a form within modal -> popover. something like this.
But because of
modal-content
element'stabindex = -1
, I can not focus on input field ever. Even if I click on input field it is not working.It is working in perfectly after I remove
tabindex=-1
from DOMThe text was updated successfully, but these errors were encountered: