kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
557 stars 302 forks source link

Failed to load resource: Frame load interrupted on every export action #962

Closed zmoddynamics closed 3 years ago

zmoddynamics commented 4 years ago

Prerequisites

Steps to reproduce the issue

  1. Install the extension
  2. Configure the plugin as module:
'modules' => [
    'gridview' =>  [
           'class' => '\kartik\grid\Module'
    ]
]

and with export features for example in view file

 <?= GridView::widget([
        'dataProvider'=> $dataProvider,
        'filterModel' => $searchModel,
        'columns' => $gridColumns,
        'autoXlFormat' => true,
        'bootstrap' => true,
        'panel' => [
            'type' => GridView::TYPE_PRIMARY,
            'heading' => '<i class="fa fa-laptop"></i>  Jobs',
        ],
        'toolbar' => [
            [
                'content'=>
                    Html::button('<i class="fa fa-plus"></i>', [
                        'type'=>'button',
                        'title'=>Module::t('kvgrid', 'New Job'),
                        'class'=>'btn btn-success'
                    ]) . ' '.
                    Html::a('<i class="fa fa-repeat"></i>', [''], [
                        'class' => 'btn btn-default',
                        'title' => Module::t('kvgrid', 'Reset Grid')
                    ]),
            ],
            '{export}',
            '{toggleData}'
        ],
        'export' => [
            'fontAwesome' => true,
            'target' => GridView::TARGET_SELF
        ],
        'responsive'=>true,
        'hover'=>true,
        'bordered' => true,
        'striped' => true,
        'condensed' => true,
    ]);?>
  1. Click export menu on any of the export types (TXT, JSON, CSV, Excel, etc.) and observe the Javascript Console. The file is generated and download but the Javascript console shows an error each time.

Expected behavior and actual behavior

When I follow those steps, I see... Failed to load resource: Frame load interrupted (Safari)

I was expecting... No errors

Environment

Browsers

Operating System

Libraries

Isolating the problem

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.