From 535e36aff6995c27785f72bf1004ebaafd88d7cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Fri, 24 Mar 2023 21:11:13 +0800 Subject: [PATCH] fix: fix invalid `delay` property, close #38 (#39) --- lib/package.json | 2 +- lib/src/tinymce.component.ts | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/package.json b/lib/package.json index b808307..5e6f963 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "ngx-tinymce", - "version": "15.0.0", + "version": "15.0.1", "description": "Angular for tinymce", "keywords": [ "angular-tinymce", diff --git a/lib/src/tinymce.component.ts b/lib/src/tinymce.component.ts index 9055184..41f9d97 100644 --- a/lib/src/tinymce.component.ts +++ b/lib/src/tinymce.component.ts @@ -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 { diff --git a/package.json b/package.json index 82c6458..df464ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-tinymce", - "version": "15.0.0", + "version": "15.0.1", "description": "Angular for tinymce", "keywords": [ "angular-tinymce",