Skip to content
New issue

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

b-form-input formatter not replacing input value #4695

Closed

Comments

@NikoFoX
Copy link

NikoFoX commented Jan 29, 2020

This bug was also described by closed issue: #3259

Describe the bug

When using b-form-input component with formatter to replace string (e.g. strip any non-numeric character) - it doesn't replace it.

Steps to reproduce the bug

If you type anything other than number, it will be typed into the input anyway.
If you again type anything other than number (but not the same char) - it will replace the last char.
If you type the same 3 non-numeric chars - 2 of them will stay.

Expected behavior

It should't allow chars to be put into the input (should be stripped instead).

Versions

Libraries:

  • BootstrapVue: 2.3.0

Demo link

https://codepen.io/qElectro/pen/jOEoZGx

@jacobmllr95 jacobmllr95 self-assigned this Jan 30, 2020
jacobmllr95 added a commit that referenced this issue Jan 30, 2020
closes #4695) (#4701)

* fix(form-input/form-textarea): properly handle out-of-sync values

* Update form-text.js

* Update form-text.js

Co-authored-by: Troy Morehouse <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment