Skip to content

Commit

Permalink
Merge pull request #439 from 6pac/bugfix/frozen-with-grid-menu
Browse files Browse the repository at this point in the history
fix(gridMenu): Menu should work with Frozen Col 0, fixes #436
  • Loading branch information
6pac committed Sep 18, 2019
2 parents 9a3d376 + 5b9607f commit a326a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controls/slick.gridmenu.js
Expand Up @@ -120,7 +120,7 @@
_gridOptions = grid.getOptions();
var gridMenuWidth = (_options.gridMenu && _options.gridMenu.menuWidth) || _defaults.menuWidth;
var $header;
if (_gridOptions && _gridOptions.frozenColumn && _gridOptions.frozenColumn >= 0) {
if (_gridOptions && _gridOptions.hasOwnProperty('frozenColumn') && _gridOptions.frozenColumn >= 0) {
$header = $('.' + _gridUid + ' .slick-header-right');
} else {
$header = $('.' + _gridUid + ' .slick-header-left');
Expand Down

0 comments on commit a326a21

Please sign in to comment.