SweetAlert Prompt issue in bootstrap modal

Mathias Martin picture Mathias Martin · Apr 19, 2017 · Viewed 11.3k times · Source

I have been trying for more than two days to run SweetAlert prompt in a modal bootstrap without success, the input is not accessible and I don't understand why. I need help please.

Answer

Leonardo Chirivì picture Leonardo Chirivì · Apr 19, 2017

Removing tabindex="-1" from myModal seems to do the job: Fiddle

The problem is tabindex, because if you set it to -1, you won't be able to access that element. More info here, and in this question.