We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1448a2 + 588db81 commit 46f65ceCopy full SHA for 46f65ce
src/directive.js
@@ -40,7 +40,7 @@ export default {
40
const { target } = e
41
const regExp = new RegExp(`${config.prefix}|${config.suffix}`, 'g')
42
let newValue = target.value.replace(regExp, '')
43
- const canNegativeInput = config.min && config.min < 0
+ const canNegativeInput = config.min < 0
44
if (
45
([110, 190].includes(e.keyCode) || e.key === config.decimal) &&
46
newValue.includes(config.decimal)
0 commit comments