Skip to content

Commit 1ca665f

Browse files
committed
fix(Counter): 修复当值为 0 时失焦判断错误导致 linout 不被触发
close #1501
1 parent 23016fc commit 1ca665f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/counter/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Component({
7070
},
7171

7272
blurCount(value, callback) {
73-
if (value) {
73+
if (value !== undefined) {
7474
this.valueRange(value);
7575
}
7676
callback && callback();

0 commit comments

Comments
 (0)