Skip to content

Commit

Permalink
Refactor #3965 - Refactor on Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Jun 22, 2023
1 parent 22e6c7a commit ff40389
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions components/lib/dropdown/BaseDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const styles = `
.p-dropdown {
display: inline-flex;
cursor: pointer;
position: relative;
user-select: none;
}
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -309,7 +306,6 @@ export default {
}
},
css: {
inlineStyles,
classes,
loadStyle
},
Expand Down
2 changes: 1 addition & 1 deletion components/lib/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div ref="container" :id="id" :class="cx('root')" :style="sx('root')" @click="onContainerClick" v-bind="ptm('root')" data-pc-name="dropdown">
<div ref="container" :id="id" :class="cx('root')" @click="onContainerClick" v-bind="ptm('root')" data-pc-name="dropdown">
<input
v-if="editable"
ref="focusInput"
Expand Down

0 comments on commit ff40389

Please sign in to comment.