From c85e8689e94c31201dfae3ef453cd3af07488e23 Mon Sep 17 00:00:00 2001 From: fyodore82 Date: Sat, 4 Jan 2020 20:02:23 +1000 Subject: [PATCH] [Rating] Fix hover state stuck (#18939) --- packages/material-ui-lab/src/Rating/Rating.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/material-ui-lab/src/Rating/Rating.js b/packages/material-ui-lab/src/Rating/Rating.js index db1db0f2b65a66..0be3727834e369 100644 --- a/packages/material-ui-lab/src/Rating/Rating.js +++ b/packages/material-ui-lab/src/Rating/Rating.js @@ -96,6 +96,9 @@ export const styles = theme => ({ transition: theme.transitions.create('transform', { duration: theme.transitions.duration.shortest, }), + // Fix mouseLeave issue. + // https://github.com/facebook/react/issues/4492 + pointerEvents: 'none', }, /* Styles applied to the icon wrapping elements when empty. */ iconEmpty: {