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

Target option is not respected #371

Closed bay-jacewhitten closed 1 year ago

bay-jacewhitten commented 1 year ago

Prerequisites

Steps to reproduce the issue

  1. Use kartik export
  2. add 'target' => '_self', to config
  3. Click button, dialog still appears.

I have tried both versions according to the docs: ExportMenu::TARGET_SELF or _self: no window is popped up in this case, but download is submitted on same page.

Expected behavior and actual behavior

When I follow those steps, I see...

A dialog box

I was expecting...

Immediate file download

Environment

Browsers

Operating System

Libraries

Isolating the problem

bay-jacewhitten commented 1 year ago

Closing this. Turns out it needed.

'showConfirmAlert' => false,