-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Describe the bug
By hydrating a b-input v-model with a null value and blurring the input with no changes, the object property is changed from null to an empty string "". This happens only the first time when the input is hydrated. If you hydrate it again with no page refresh, it works as expected.
Steps to reproduce the bug
- Hydrate the
<b-input>with anullvalue for thev-model - Focus the input
- Blur the input with no changes at all
- See how the property is changed from
nullto""
Expected behavior
The object property must still as null
Versions
Libraries:
- BootstrapVue: ~2.19.0
- Bootstrap: ~4.4.1
- Vue: ^2.6.12
Environment:
- Device: Desktop
- OS: Ubuntu 18
- Browser: Chrome
- Version: 86.0.4240.198 (Official Build) (64-bit)
Additional context
This is causing an issue with some 3rd party validators like vee-validate, where a pristine flag is set to false because changes were detected on the object (from null to "").