Skip to content

Commit 11befc1

Browse files
committed
fix(b-form-input/b-form-textarea): legacy browser support
1 parent 67624f0 commit 11befc1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mixins/form-text.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const formTextMixin = Vue.extend({
102102
},
103103
watch: {
104104
[MODEL_PROP_NAME](newValue) {
105+
console.log('form-text: watch value', newValue)
105106
const stringifyValue = toString(newValue)
106107
const modifiedValue = this.modifyValue(newValue)
107108
if (stringifyValue !== this.localValue || modifiedValue !== this.vModelValue) {
@@ -149,6 +150,7 @@ export const formTextMixin = Vue.extend({
149150
return value
150151
},
151152
updateValue(value, force = false) {
153+
console.log('form-text: updateValue', value)
152154
const { lazy } = this
153155
if (lazy && !force) {
154156
return
@@ -198,6 +200,7 @@ export const formTextMixin = Vue.extend({
198200
}
199201
const { value } = event.target
200202
const formattedValue = this.formatValue(value, event)
203+
console.log('form-text: onInput', formattedValue)
201204
// Exit when the `formatter` function strictly returned `false`
202205
// or prevented the input event
203206
/* istanbul ignore next */
@@ -212,6 +215,7 @@ export const formTextMixin = Vue.extend({
212215
onChange(event) {
213216
const { value } = event.target
214217
const formattedValue = this.formatValue(value, event)
218+
console.log('form-text: onChange', formattedValue)
215219
// Exit when the `formatter` function strictly returned `false`
216220
// or prevented the input event
217221
/* istanbul ignore next */
@@ -228,6 +232,7 @@ export const formTextMixin = Vue.extend({
228232
// on mobile browsers (e.g. caused by autocomplete)
229233
const { value } = event.target
230234
const formattedValue = this.formatValue(value, event, true)
235+
console.log('form-text: onBlur', formattedValue)
231236
if (formattedValue !== false) {
232237
// We need to use the modified value here to apply the
233238
// `.trim` and `.number` modifiers properly

0 commit comments

Comments
 (0)