• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

On Pressing shift tab or tab key focus moves to adress bar in browser

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,I am using ng2-bs3-modal@^0.13.0 modal component in one of our projects.

Our requirement is to trap the focus inside the modal however the focus is moving outside of the modal on tabbing. It then stays outside the modal until it traverses all the tabs on the page.

Is there a way you could keep the focus trapped inside the modal until the modal is closed? Or in other words it should continue looping with focus being within the modal.

Expected behavior – Focus should be trapped inside the modal window and on closing it focus should move to the element which triggers the modal window.

This is critical interaction for AX users. Appreciate any support you can provide with regards to this.

Link to my library: (https://github.com/dougludlow/ng2-bs3-modal)
         
Example code:
<button type="button" class="btn btn-default" (click)="modal.open()">Open me!</button>

<bs-modal #modal>
   <bs-modal-header [showDismiss]="true">
       <h4 class="modal-title">I'm a modal!</h4>
   </bs-modal-header>
   <bs-modal-body>
       Hello World!
   </bs-modal-body>
   <bs-modal-footer [showDefaultButtons]="true"></bs-modal-footer>
</bs-modal>
 
reply
    Bookmark Topic Watch Topic
  • New Topic