New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
confirm prompt coming twice with yii2 latest version #13357
Comments
Thanks for posting in our issue tracker.
Thanks! This is an automated comment, triggered by adding the label |
When does the issue occur?
What do you see?
What was the expected result?
|
So it's just |
yes its just HTML::a tag in but yes its in form but not with $form object. |
Then please edit 1st post to contain full example on how to reproduce it. Thanks. |
My code for "delete" button in ActionColumn:
If i put a grid in the form (ActiveForm) - prompt coming twice. |
One more thing. Are you able to reproduce the same issue using code from master branch? |
<?php $form = ActiveForm::begin([
'action' => 'clone',
'method' => 'POST',
]); ?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'Descripcion',
[
'class' => 'yii\grid\CheckboxColumn',
'multiple' => true
],
],
]); ?>
<div class="form-group">
<?= Html::submitButton('Duplicar preguntas seleccionadas', [
'class' => 'btn btn-success',
'data' => [
'confirm' => '¿Está seguro?',
],
]) ?>
</div>
<?php ActiveForm::end(); ?> Same problem without PJAX... v2.0.10 |
Hi, having the same issue since 2.0.10 You need to place your link with data-confirm attribute INSIDE yii ActiveForm to reproduce this bug. |
now this is the issue with ref with #6642 here confirm prompt coming twice..
The text was updated successfully, but these errors were encountered: