Skip to content

Commit

Permalink
fix: remove invalid TS type and invalid this object (#786)
Browse files Browse the repository at this point in the history
- small issues found after converting some plugins to vanilla JS
  • Loading branch information
ghiscoding authored Jun 15, 2023
1 parent 0b339e3 commit ca2393c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/slick.autotooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
const targetElm = (e.target);

if (targetElm) {
node = targetElm.closest < HTMLDivElement > ('.slick-header-column');
node = targetElm.closest('.slick-header-column');
if (node && !(column && column.toolTip)) {
node.title = (targetElm.clientWidth < node.clientWidth) ? column && column.name || '' : '';
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/slick.headermenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
}

// make sure the menu element is an empty div before adding all list of commands
Slick.Utils.emptyElement(this._menuElm);
Slick.Utils.emptyElement(_menuElm);

// Construct the menu items.
for (var i = 0; i < menu.items.length; i++) {
Expand Down

0 comments on commit ca2393c

Please sign in to comment.