This is the modal:
<div class="modal fade" id="modalInsertAgression" tabindex="-1" role="dialog" aria-labelledby="modalInsertAgression" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="card">
<form id="formInsertarAgresion" action="{% url 'insertarAgresion' %}" role="form">{% csrf_token %}
<div class="card-header card-header-icon" data-background-color="rose">
<i class="material-icons">place</i>
</div>
<div class="card-content">
<h4 class="card-title">Test</h4>
<p class="text-center" id="msgModalInsertAgression"></p>
<br>
<div class="input-group">
<span class="input-group-addon"><i class="material-icons">date_range</i></span>
<div class="form-group">{{ agresionForm.fecha }}</div>
</div>
</div>
<div class="card-footer pull-right">
<button id="btnInsertModalInsertAgression" type="submit" class="btn btn-fill btn-rose">Insertar</button>
<button id="btnCloseModalInsertAgression" type="button" class="btn btn-default btn-fill" data-dismiss="modal">Cancelar</button>
</div>
</form>
</div>
</div>
I open it with:
$("#modalInsertAgression").show();
It does not work on iPhone, when the modal appears the background keeps black and it lost the focus, you can not click in the modal or the buttons.
Edit: The modal only works with $("#modalInsertAgression").modal({backdrop: false});
but I do not want to lose the black background...