Skip to content

Commit

Permalink
fix: fix invalid delay property, close #38 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Mar 24, 2023
1 parent e94f6ec commit 535e36a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-tinymce",
"version": "15.0.0",
"version": "15.0.1",
"description": "Angular for tinymce",
"keywords": [
"angular-tinymce",
Expand Down
2 changes: 1 addition & 1 deletion lib/src/tinymce.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class TinymceComponent implements AfterViewInit, OnChanges, OnDestroy, Co
if (isSSR) {
return;
}
setTimeout(() => this.init(), Math.min(0, this.delay));
setTimeout(() => this.init(), Math.max(0, this.delay));
}

private init(): void {
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": "ngx-tinymce",
"version": "15.0.0",
"version": "15.0.1",
"description": "Angular for tinymce",
"keywords": [
"angular-tinymce",
Expand Down

0 comments on commit 535e36a

Please sign in to comment.