Skip to content

Commit d4cd34a

Browse files
committed
Update form-text.js
1 parent 11befc1 commit d4cd34a

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/mixins/form-text.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export const formTextMixin = Vue.extend({
102102
},
103103
watch: {
104104
[MODEL_PROP_NAME](newValue) {
105-
console.log('form-text: watch value', newValue)
106105
const stringifyValue = toString(newValue)
107106
const modifiedValue = this.modifyValue(newValue)
108107
if (stringifyValue !== this.localValue || modifiedValue !== this.vModelValue) {
@@ -150,7 +149,6 @@ export const formTextMixin = Vue.extend({
150149
return value
151150
},
152151
updateValue(value, force = false) {
153-
console.log('form-text: updateValue', value)
154152
const { lazy } = this
155153
if (lazy && !force) {
156154
return
@@ -198,9 +196,8 @@ export const formTextMixin = Vue.extend({
198196
if (event.target.composing) {
199197
return
200198
}
201-
const { value } = event.target
199+
const value = event.target.value
202200
const formattedValue = this.formatValue(value, event)
203-
console.log('form-text: onInput', formattedValue)
204201
// Exit when the `formatter` function strictly returned `false`
205202
// or prevented the input event
206203
/* istanbul ignore next */
@@ -213,9 +210,8 @@ export const formTextMixin = Vue.extend({
213210
this.$emit(EVENT_NAME_INPUT, formattedValue)
214211
},
215212
onChange(event) {
216-
const { value } = event.target
213+
const value = event.target.value
217214
const formattedValue = this.formatValue(value, event)
218-
console.log('form-text: onChange', formattedValue)
219215
// Exit when the `formatter` function strictly returned `false`
220216
// or prevented the input event
221217
/* istanbul ignore next */
@@ -230,9 +226,8 @@ export const formTextMixin = Vue.extend({
230226
onBlur(event) {
231227
// Apply the `localValue` on blur to prevent cursor jumps
232228
// on mobile browsers (e.g. caused by autocomplete)
233-
const { value } = event.target
229+
const value = event.target.value
234230
const formattedValue = this.formatValue(value, event, true)
235-
console.log('form-text: onBlur', formattedValue)
236231
if (formattedValue !== false) {
237232
// We need to use the modified value here to apply the
238233
// `.trim` and `.number` modifiers properly

0 commit comments

Comments
 (0)