diff --git a/package-lock.json b/package-lock.json index 39532642e1e..88282d656fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "primeng", - "version": "17.8.0", + "version": "17.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "primeng", - "version": "17.8.0", + "version": "17.9.0", "license": "SEE LICENSE IN LICENSE.md", "devDependencies": { "@angular-devkit/build-angular": "^17.0.5", diff --git a/package.json b/package.json index e726d83616c..712d49eb523 100755 --- a/package.json +++ b/package.json @@ -40,6 +40,8 @@ "@angular/platform-browser-dynamic": "^17.2.2", "@angular/platform-server": "^17.2.2", "@angular/router": "^17.2.2", + "@angular/ssr": "^17.2.1", + "@docsearch/js": "^3.3.4", "@stackblitz/sdk": "1.9.0", "@types/express": "^4.17.17", "@types/jasmine": "~4.3.1", @@ -51,6 +53,7 @@ "codelyzer": "^0.0.28", "del": "^7.1.0", "domino": "^2.1.6", + "esbuild": "^0.19.8", "eslint": "^8.39.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-import": "latest", @@ -84,9 +87,6 @@ "typedoc": "0.25.4", "typescript": "5.2.2", "xlsx": "^0.18.5", - "zone.js": "~0.14.0", - "@angular/ssr": "^17.2.1", - "@docsearch/js": "^3.3.4", - "esbuild": "^0.19.8" + "zone.js": "~0.14.0" } -} \ No newline at end of file +} diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index 4b1ccb338d9..090d5f1d686 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -1379,10 +1379,11 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control onInputBlur(event: Event) { this.focused = false; - let newValue = this.validateValue(this.parseValue(this.input.nativeElement.value)).toString(); - this.input.nativeElement.value = this.formatValue(newValue); - this.input.nativeElement.setAttribute('aria-valuenow', newValue); - this.updateModel(event, newValue); + const newValueNumber = this.validateValue(this.parseValue(this.input.nativeElement.value)); + const newValueString = newValueNumber?.toString(); + this.input.nativeElement.value = this.formatValue(newValueString); + this.input.nativeElement.setAttribute('aria-valuenow', newValueString); + this.updateModel(event, newValueNumber); this.onBlur.emit(event); }