Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
feat(modal) Make enforceFocus configurable #706
In our project, we needed to launch a secondary modal with some form inputs from a Bootstrap-Vue Modal. Due to the "enforceFocus", this was not possible.
If we make this feature configurable, we can use the also when used with a secondary form modal launched from within the first modal.
changed the title from
Make enforceFocus configurable
fix(modal) Make enforceFocus configurable
Jul 17, 2017
Side note: multiple modals open at once are not supported in Bootstrap V4. The first modal must be closed before the second modal opens.
Once caveat with disabling enforce focus is that non-sighted users (and keyboard-only users) may not be able to find the modal if tab focus leaves the modal content area.
Native Bootstrap V4 alpha enforces focus on the active modal (i.. tabbing will cycle through the content of the modal), and is not configurable.
I absolutely follow your comments about non-sighted users.
Our use case was i.e. when using a WYSIWYG editor inside a modal, which opens another (non-bootstrap) modal for editing an image or link... in which the input fields will be unreachable as long as the enforceFocus callback is enabled.
I thought it might be convenient for others to also have the options to turn off the "enforceFocus" if necessary.