Skip to content

Commit

Permalink
fix(select): fix ref warning
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiBemi committed Mar 25, 2024
1 parent 50866b6 commit f7e123a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/select/src/lib/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
MenuSurfaceAnchor
} from '@rmwc/menu';
import { ListGroup, ListGroupSubheader, ListDivider } from '@rmwc/list';
import { withRipple } from '@rmwc/ripple';

import { useSelectFoundation } from './foundation';
import { SelectIcon } from '../select-icon';
Expand Down Expand Up @@ -194,9 +193,9 @@ function NativeMenu(
);
}

const AnchorEl = withRipple({ surface: false })(function (props: any) {
const AnchorEl = function (props: any) {
return <Tag {...props} />;
});
};

interface EnhancedMenuProps extends MenuProps {
selectOptions: FormattedOption[];
Expand Down

0 comments on commit f7e123a

Please sign in to comment.