kartik-v / yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)
http://demos.krajee.com/export
Other
165 stars 126 forks source link

Export Dialog Modal Always Re-Created After Pjax #305

Closed dedychaidir closed 4 years ago

dedychaidir commented 5 years ago

Prerequisites

Steps to reproduce the issue

  1. Using ExportMenu with GridView, and created custom filtering for the GridView (outside the GridView) using Pjax to refresh the GridView.
  2. After Pjax is triggerred, the records are filtered well. But when the ExportMenu button fired, it show the modal dialog in 2 layer (2 modal).
  3. If the issue number 2 above repeated, the modal dialog will show 3 layer, and so on and on.
  4. I've also ask on StackOverflow within this link https://stackoverflow.com/questions/57830938/yii2-rendering-exportmenu-modal-twice-after-pjax-called

Expected behavior and actual behavior

ExportMenu Options: 'pjaxContainerId' => 'kv-pjax-container',

GridView Options: 'pjaxSettings' => ['options' => ['id' => 'kv-pjax-container']],

Environment

Browsers

Operating System

Libraries

Isolating the problem

stale[bot] commented 4 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.

stale[bot] commented 4 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.