We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does an option to pass a default value make sense when the input value is empty?
vanilla-masker/lib/vanilla-masker.js
Line 177 in 580f5f2
Something like that:
var output = value !== "" ? opts.unit + signal + masked + opts.separator + cents : ""; return output.replace(clearSeparator, "") + opts.suffixUnit;
When using label inputs there is this problem:
To fix this you need to use the dispatchEvent:
document.addEventListener('blur', (event) => { const bubbling = event.target.closest('.js-money') bubbling.dispatchEvent(new Event('input')) })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Does an option to pass a default value make sense when the input value is empty?
vanilla-masker/lib/vanilla-masker.js
Line 177 in 580f5f2
Something like that:
When using label inputs there is this problem:
To fix this you need to use the dispatchEvent:
The text was updated successfully, but these errors were encountered: