Skip to content

Commit

Permalink
Update InputText.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Dec 5, 2023
1 parent 8ffcdf2 commit 6f0002e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions components/lib/inputtext/InputText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ export default {
extends: BaseInputText,
emits: ['update:modelValue'],
methods: {
onInput(event) {
this.$emit('update:modelValue', event.target.value);
}
},
computed: {
filled() {
return this.modelValue != null && this.modelValue.toString().length > 0;
},
getPTOptions(key) {
return this.ptm(key, {
context: {
filled: this.filled,
disabled: this.$attrs.disabled || this.$attrs.disabled === ''
}
});
},
onInput(event) {
this.$emit('update:modelValue', event.target.value);
}
},
computed: {
filled() {
return this.modelValue != null && this.modelValue.toString().length > 0;
}
}
};
Expand Down

0 comments on commit 6f0002e

Please sign in to comment.