Skip to content

Commit ac52f2f

Browse files
authored
Merge pull request #52 from maurojs10/hotfix/empty-value
Prevent resetting empty value to zero on mutation event
2 parents 0e39438 + c358907 commit ac52f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap-input-spinner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
if (updateInput) {
135135
$input[0].value = ""
136136
}
137-
value = 0
137+
value = NaN
138138
} else {
139139
newValue = parseFloat(newValue)
140140
newValue = Math.min(Math.max(newValue, min), max)

0 commit comments

Comments
 (0)