Skip to content

Commit 46f65ce

Browse files
committed
Merge branch 'master' into next
2 parents a1448a2 + 588db81 commit 46f65ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default {
4040
const { target } = e
4141
const regExp = new RegExp(`${config.prefix}|${config.suffix}`, 'g')
4242
let newValue = target.value.replace(regExp, '')
43-
const canNegativeInput = config.min && config.min < 0
43+
const canNegativeInput = config.min < 0
4444
if (
4545
([110, 190].includes(e.keyCode) || e.key === config.decimal) &&
4646
newValue.includes(config.decimal)

0 commit comments

Comments
 (0)