diff --git a/app/packages/core/src/plugins/SchemaIO/components/DropdownView.tsx b/app/packages/core/src/plugins/SchemaIO/components/DropdownView.tsx
index f297d70270c..a14068f17d0 100644
--- a/app/packages/core/src/plugins/SchemaIO/components/DropdownView.tsx
+++ b/app/packages/core/src/plugins/SchemaIO/components/DropdownView.tsx
@@ -122,52 +122,6 @@ export default function DropdownView(props: ViewPropsType) {
}
);
- // const { MenuProps = {}, ...selectProps } = getComponentProps(
- // props,
- // "select",
- // {
- // sx: {
- // // custom input style for icon only control
- // ...(icon
- // ? {
- // "&.MuiInputBase-root.MuiOutlinedInput-root.MuiInputBase-colorPrimary": {
- // backgroundColor: "transparent !important",
- // borderRadius: "0 !important",
- // border: "none !important",
- // boxShadow: "none !important",
- // "&:hover, &:focus": {
- // backgroundColor: "transparent !important",
- // boxShadow: "none !important",
- // },
- // },
- // "& .MuiSelect-select": {
- // padding: 0,
- // background: "transparent",
- // "&:focus": {
- // background: "transparent",
- // },
- // },
- // "& .MuiInputBase-root": {
- // background: "transparent",
- // },
- // "& .MuiOutlinedInput-notchedOutline": {
- // border: "none",
- // },
- // "& .MuiSelect-icon": {
- // display: "none",
- // },
- // }
- // : {
- // ".MuiSelect-select": {
- // padding: "0.45rem 2rem 0.45rem 1rem",
- // opacity: selected ? 1 : 0.5,
- // },
- // }),
- // ...getFieldSx({ color, variant }),
- // },
- // }
- // );
-
// dynamically import the icon component
useEffect(() => {
if (icon && iconImports[icon]) {
@@ -187,69 +141,63 @@ export default function DropdownView(props: ViewPropsType) {
);
};
- const renderMenuDropdown = () => (
-
- );
-
- return icon ? (
- renderMenuDropdown()
- ) : (
+ return (
- {renderMenuDropdown()}
+
);
}