Skip to content
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

export to json happen javascript error #911

Closed
14 tasks
haohetao opened this issue Jun 4, 2019 · 3 comments
Closed
14 tasks

export to json happen javascript error #911

haohetao opened this issue Jun 4, 2019 · 3 comments
Labels

Comments

@haohetao
Copy link

haohetao commented Jun 4, 2019

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest master branch of yii2-grid.
  • This is not an usage question. I confirm having gone through and read the documentation and demos.
  • This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
  • I have attempted to find the simplest possible steps to reproduce the issue.
  • I have included a failing test as a pull request (Optional).

Steps to reproduce the issue

Expected behavior and actual behavior

When I follow those steps, I see...

I was expecting...

Environment

Browsers

  • [x ] Google Chrome
  • Mozilla Firefox
  • Internet Explorer
  • Safari

Operating System

  • [ x] Windows
  • Mac OS X
  • Linux
  • Mobile

Libraries

  • jQuery version:
  • yii2-grid version:

Isolating the problem

  • This bug happens on the demos page
  • The bug happens consistently across all tested browsers
  • [ x] This bug happens when using yii2-grid without other plugins.

kv-grid-export.js:116 Uncaught TypeError: Cannot read property 'slugColHeads' of undefined
at HTMLTableCellElement. (kv-grid-export.js:116)
at Function.each (jquery.js:367)
at jQuery.fn.init.each (jquery.js:202)
at GridExport.getArray (kv-grid-export.js:114)
at GridExport.exportJSON (kv-grid-export.js:359)
at kv-grid-export.js:150

@haohetao
Copy link
Author

haohetao commented Jun 4, 2019

QQ截图20190604210418
d1cf316#diff-8251c57ea05d8f626a339f2c8a572ba3
delete ".$h" is ok

@stale
Copy link

stale bot commented Aug 3, 2019

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 stale bot added the wontfix label Aug 3, 2019
@stale stale bot closed this as completed Aug 10, 2019
@mcserep
Copy link

mcserep commented Dec 30, 2019

I have the same bug after upgrading yii2-grid from version 3.1.7 to 3.3.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants