From ff403897d222cfb3514a6d203b07d46a7ec5523c 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, 22 Jun 2023 16:06:28 +0300 Subject: [PATCH] Refactor #3965 - Refactor on Dropdown --- components/lib/dropdown/BaseDropdown.vue | 6 +----- components/lib/dropdown/Dropdown.vue | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/components/lib/dropdown/BaseDropdown.vue b/components/lib/dropdown/BaseDropdown.vue index 14757dd71..8707e2920 100644 --- a/components/lib/dropdown/BaseDropdown.vue +++ b/components/lib/dropdown/BaseDropdown.vue @@ -6,6 +6,7 @@ const styles = ` .p-dropdown { display: inline-flex; cursor: pointer; + position: relative; user-select: none; } @@ -96,10 +97,6 @@ input.p-dropdown-label { } `; -const inlineStyles = { - root: ({ props }) => ({ position: props.appendTo === 'self' ? 'relative' : undefined }) -}; - const classes = { root: ({ props, state }) => [ 'p-dropdown p-component p-inputwrapper', @@ -309,7 +306,6 @@ export default { } }, css: { - inlineStyles, classes, loadStyle }, diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index c5e5f39af..82bb7f7a7 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -1,5 +1,5 @@