Skip to content

Commit 47b0639

Browse files
committed
updated core issue
1 parent 1d0ac66 commit 47b0639

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"scripts": {
2323
"prebuild": "rimraf dist",
2424
"build": "rollup -c rollup.config.js && rimraf dist/src",
25-
"docs:dev": "vuepress dev docs",
26-
"docs:build": "vuepress build docs",
25+
"docs:dev": "cd docs && vuepress dev docs",
26+
"docs:build": "cd docs && vuepress build docs",
2727
"test": "vitest",
2828
"coverage": "vitest run --coverage",
2929
"lint": "eslint --no-fix --max-warnings 0 {**/*,*}.{js,ts,vue}",

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function blurHandler(event: Event) {
181181

182182
const { oldValue, masked } = target
183183

184-
updateValue(target, null, { force: true, clean: true })
184+
updateValue(target, null, { emit: false, force: true, clean: true })
185185

186186
if (oldValue !== target.value) {
187187
target.oldValue = masked

src/number-format.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,10 @@ export default class NumberFormat {
163163
*/
164164
unformat(input: Input): string {
165165
this.input = input
166-
if (this.isNull() && !this.options.reverseFill) {
166+
if (this.isNull()) {
167+
return this.options.nullValue
168+
}
169+
if (this.options.reverseFill && this.realNumber() <= 0) {
167170
return this.options.nullValue
168171
}
169172
return this.sign() + this.realNumber()

0 commit comments

Comments
 (0)