React AntD Select Component: hover state - reactjs

I've just started using React AntD library Select component. I noticed that when you have the select dropdown open and if you mouse leave it, the last hovered on option stays visible. Is there a way to override this behaviour? I want to remove the hovered on styling once my mouse leaves the select component...
Thanks in advance!

The last hovered on option stays visible only if you've clicked that placement. If you don't clicked that placement and just hover on option, then your last hovered on option will not stay visible. So, you can't override this behaviour.

Related

MUI button transition on focus

I have a basic create-react-app with Material/MUI text field and button. When I tab from the textfield to the button, it creates an animation on the button where the middle part slightly grows and shrinks. I'm trying to figure out how to get rid of that animation and just show a simple button that has focus. Toggling the options in Chrome debugger hasn't helped me track down where this animation is being created (focus, hover, etc.). In fact, anytime I change any property in the CSS panel it turns the animation off and makes it harder to track down what is causing this.
Thanks.

Dropdown menu moves with whole page scroll

I am using the react-select package for our menu dropdowns. However, I've noticed that if a dropdown menu is open and you scroll the page down or up, the menu moves with the page. Expected behavior is that the dropdowns position should stay static. This expected behavior can be seen here on the "single" dropdown. Any ideas what could cause this issue?
wrap react-select inside the container with some height & relative position.

react-popper misplacing popper element

I have a menu component that uses popperjs for showing the popup menu. When clicked on the button for the first time the popup appears at top left corner of the screen instead of below the button. I have used react portal for placing the rendered menu.
The problem resolves when I use useState hook to capture references of popper and reference elements(as suggested in the examples on react-popper). But I have implemented a clickaway hook to hide popup when you click any where but the popup, for which I need to use useRef.
and then I do usePopper(refElem.current, popperElem.current). I have reproduced the problem here

Material Popover Scrollable content

I use React and Material-UI. I use huge Popover with the Tooltip behaviour. The goal is to display data when the user hover some links. It's working well but i have a problem about scrolling.
I want to be able to scroll INSIDE the popover when the Mouse is inside it. The default behaviour is to let the user scroll the entire page instead of focus on the popover.
I have set a CodeSansBox to show you.

Override styling for md-autocomplete (change clear button icon)

I have a component that contains an md-autocomplete. This component is essentially being used as a searchable select list.
So, I'd like to change the icon of the clear-button from the 'X' to a down arrow.
I've tried the solution mentioned here, but that doesn't work for me, because I need the button to remain clickable.
Is there a way I can override the button styling in the component's CSS to specify a different icon to be used?

Resources