-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Describe the bug
@jackmu95
On input of a b-form-input
, the computed property hasFormatter
throws a "Cannot read property 'name' of null" error when no formatter
prop is provided, which results in this.formatter
being null
.
hasFormatter() { return this.formatter.name !== props.formatter.default.name }
EDIT: above code is in src/mixins/form-text.js
Steps to reproduce the bug
- Go to a form that uses
b-form-input
- Open debugger
- Type characters into the form field
- See error in console
- This appears to prevent a value from actually being set for the input
Expected behavior
User is able to enter a value and have the value persist on form submit
Versions
Libraries:
- BootstrapVue: 2.20.1
- Bootstrap: 4.5.3
- Vue: 2.6.12
Environment:
- Device: Mac
- OS: macOS Catalina
- Browser: Chrome
- Version: 87
Demo link
N/A as this is an internal application
Additional context
N/A