Change dropdown menu icon to not be replaced by close icon when open in web UI (#29532)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2024-03-11 08:57:23 +00:00
1 parent 5b3a8737d6
commit 2347ea813e
2 files changed
+3 -6

No files matched your search

@@ -9,7 +9,6 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import { supportsPassiveEvents } from 'detect-passive-events';
import Overlay from 'react-overlays/Overlay';
import CloseIcon from '@/material-icons/400-24px/close.svg?react';
import { CircularProgress } from 'mastodon/components/circular_progress';
import { WithRouterPropTypes } from 'mastodon/utils/react_router';
@@ -298,7 +297,7 @@ class Dropdown extends PureComponent {
}) : (
<IconButton
icon={!open ? icon : 'close'}
iconComponent={!open ? iconComponent : CloseIcon}
iconComponent={iconComponent}
title={title}
active={open}
disabled={disabled}