I am using yii2 bootstrap model to show some data on that and bootstrap model is close through two ways,
1)on click of model close button.
2)on click of that black area which is appeared in background like light-box.
I already handle the close button event but unable to handle that black area click event. I don't want to close my model while click on that black area how should i do that.Please help me. Thanks in advance.
My model
<?php
Modal::begin([
'header' => 'Student Info',
'id' => 'stud-info',
'closeButton' => ['id' => 'close-button'],
]);
$form->field($model, 'StudName',
[
'options'=>['enableAjaxValidation' => false]
])->textInput();
Modal::end();