@@ -102,6 +102,7 @@ export const formTextMixin = Vue.extend({
102
102
} ,
103
103
watch : {
104
104
[ MODEL_PROP_NAME ] ( newValue ) {
105
+ console . log ( 'form-text: watch value' , newValue )
105
106
const stringifyValue = toString ( newValue )
106
107
const modifiedValue = this . modifyValue ( newValue )
107
108
if ( stringifyValue !== this . localValue || modifiedValue !== this . vModelValue ) {
@@ -149,6 +150,7 @@ export const formTextMixin = Vue.extend({
149
150
return value
150
151
} ,
151
152
updateValue ( value , force = false ) {
153
+ console . log ( 'form-text: updateValue' , value )
152
154
const { lazy } = this
153
155
if ( lazy && ! force ) {
154
156
return
@@ -198,6 +200,7 @@ export const formTextMixin = Vue.extend({
198
200
}
199
201
const { value } = event . target
200
202
const formattedValue = this . formatValue ( value , event )
203
+ console . log ( 'form-text: onInput' , formattedValue )
201
204
// Exit when the `formatter` function strictly returned `false`
202
205
// or prevented the input event
203
206
/* istanbul ignore next */
@@ -212,6 +215,7 @@ export const formTextMixin = Vue.extend({
212
215
onChange ( event ) {
213
216
const { value } = event . target
214
217
const formattedValue = this . formatValue ( value , event )
218
+ console . log ( 'form-text: onChange' , formattedValue )
215
219
// Exit when the `formatter` function strictly returned `false`
216
220
// or prevented the input event
217
221
/* istanbul ignore next */
@@ -228,6 +232,7 @@ export const formTextMixin = Vue.extend({
228
232
// on mobile browsers (e.g. caused by autocomplete)
229
233
const { value } = event . target
230
234
const formattedValue = this . formatValue ( value , event , true )
235
+ console . log ( 'form-text: onBlur' , formattedValue )
231
236
if ( formattedValue !== false ) {
232
237
// We need to use the modified value here to apply the
233
238
// `.trim` and `.number` modifiers properly
0 commit comments