From b2106de80b1fed27f35dff231710746a4dc76930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 25 May 2023 11:54:40 +0300 Subject: [PATCH] Refactor #3965 - For AutoComplete & Dropdown --- components/lib/basecomponent/BaseComponent.vue | 3 +++ components/lib/dropdown/BaseDropdown.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 415b4355f..6235ddde2 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -61,6 +61,9 @@ export default { return this.getPTValue(obj, key, params); }, cx(key = '', params = {}) { + console.log(key); + console.log(!this.isUnstyled ? this.getOptionValue(this.$options.css && this.$options.css.classes, key, { instance: this, props: this.$props, state: this.$data, ...params }) : undefined); + return !this.isUnstyled ? this.getOptionValue(this.$options.css && this.$options.css.classes, key, { instance: this, props: this.$props, state: this.$data, ...params }) : undefined; }, cxo(obj = {}, key = '', params = {}) { diff --git a/components/lib/dropdown/BaseDropdown.vue b/components/lib/dropdown/BaseDropdown.vue index 711ff904e..4d6e45e9b 100644 --- a/components/lib/dropdown/BaseDropdown.vue +++ b/components/lib/dropdown/BaseDropdown.vue @@ -97,7 +97,7 @@ input.p-dropdown-label { `; const inlineStyles = { - root: { position: 'relative' } + root: ({ props }) => ({ position: props.appendTo === 'self' ? 'relative' : undefined }) }; const classes = {