From 00c891a3e2fc67cbb485532997c953a1553e25e9 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Sun, 11 Feb 2024 23:47:53 +0000 Subject: [PATCH 01/52] Refactor #5257 --- components/lib/inputtext/InputText.vue | 5 ++++- components/lib/knob/Knob.vue | 3 ++- components/lib/listbox/Listbox.vue | 3 ++- components/lib/megamenu/MegaMenu.vue | 3 ++- components/lib/menu/Menu.vue | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/components/lib/inputtext/InputText.vue b/components/lib/inputtext/InputText.vue index f66a09a06..5201d365d 100755 --- a/components/lib/inputtext/InputText.vue +++ b/components/lib/inputtext/InputText.vue @@ -8,10 +8,13 @@ import BaseInputText from './BaseInputText.vue'; export default { name: 'InputText', extends: BaseInputText, + inheritAttrs: false, emits: ['update:modelValue'], methods: { getPTOptions(key) { - return this.ptm(key, { + const _ptm = key === 'root' ? this.ptmi : this.ptm; + + return _ptm(key, { context: { filled: this.filled, disabled: this.$attrs.disabled || this.$attrs.disabled === '' diff --git a/components/lib/knob/Knob.vue b/components/lib/knob/Knob.vue index c79f4eefa..b0cfe0430 100644 --- a/components/lib/knob/Knob.vue +++ b/components/lib/knob/Knob.vue @@ -1,5 +1,5 @@