React-bootstrap: tabindex="-1": problem with live chats and modals

Created on 25 Jul 2016  路  3Comments  路  Source: react-bootstrap/react-bootstrap

Hi there

I'm currently using Crisp.im to communicate with my users, but when I have a modal open, the chat text area does not work.

As soon as I remove the tabindex="-1" from the modal, it works perfectly. I tried other live chats and talked to a lot of support guys and they all told me that tabindex is a problem.

Problem

<div class="fade in modal" role="dialog" tabindex="-1" style="display: block;">
  // ..
</div>

An idea how to fix this?

Cheers
Lailo

Most helpful comment

Then render the support popup inside the modal node. Or else disable enforceFocus on the modal.

All 3 comments

why is tabIndex a problem? when a modal is open the modal and modal content is the only thing that can be focused, which is what a "modal" means.

@jquense What if a user has problems inside the modal and needs live support?

Then render the support popup inside the modal node. Or else disable enforceFocus on the modal.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kastork picture kastork  路  3Comments

AbdullahWali picture AbdullahWali  路  3Comments

mikejonas picture mikejonas  路  3Comments

patsissons picture patsissons  路  3Comments

jquense picture jquense  路  3Comments