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.
1 parent e29bcfd commit ca60027Copy full SHA for ca60027
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 || config.min < 0
44
if (
45
([110, 190].includes(e.keyCode) || e.key === config.decimal) &&
46
newValue.includes(config.decimal)
0 commit comments