Skip to content

Commit 68150c9

Browse files
Merge pull request #2078 from iamfaran/feat/nav-features
[Feat]: Add navigation UI enhancements
2 parents fed088d + 0c1c690 commit 68150c9

File tree

11 files changed

+1139
-219
lines changed

11 files changed

+1139
-219
lines changed

client/packages/lowcoder-design/src/components/Dropdown.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,6 @@ export function Dropdown<T extends OptionsType>(props: DropdownProps<T>) {
159159
const { placement = "right" } = props;
160160
const valueInfoMap = _.fromPairs(props.options.map((option) => [option.value, option]));
161161

162-
useEffect(() => {
163-
const dropdownElems = document.querySelectorAll<HTMLElement>("div.ant-dropdown ul.ant-dropdown-menu");
164-
for (let index = 0; index < dropdownElems.length; index++) {
165-
const element = dropdownElems[index];
166-
element.style.maxHeight = "300px";
167-
element.style.overflowY = "scroll";
168-
element.style.minWidth = "150px";
169-
element.style.paddingRight = "10px";
170-
}
171-
}, []);
172162

173163
return (
174164
<FlexDiv style={props.style} className={props.className}>

0 commit comments

Comments
 (0)