Skip to content

Commit

Permalink
fix timeout TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-redFox committed Dec 5, 2023
1 parent ae15617 commit a4083c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/GridLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class GridLayout extends HTMLElement {
#timeout?: number;
observer = new ResizeObserver(() => {
clearTimeout(this.#timeout);
this.#timeout = setTimeout(() => {
this.#timeout = window.setTimeout(() => {
this.#timeout = void 0;
this.calculateSize();
this.render();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grid-layout-component",
"version": "0.3.2",
"version": "0.3.3",
"description": "A draggable and resizable grid layout with responsive breakpoints.",
"main": "dist/grid-layout-component.min.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit a4083c0

Please sign in to comment.