Commit a5e56e37 authored by Max Alekseenko's avatar Max Alekseenko

fix disabled rating behavior

parent 99f23065
...@@ -34,6 +34,7 @@ const TriggerButton = ( ...@@ -34,6 +34,7 @@ const TriggerButton = (
label={ getTooltipText(canRate) } label={ getTooltipText(canRate) }
openDelay={ 100 } openDelay={ 100 }
textAlign="center" textAlign="center"
closeOnClick={ Boolean(canRate) }
> >
<Button <Button
ref={ ref } ref={ ref }
...@@ -48,6 +49,7 @@ const TriggerButton = ( ...@@ -48,6 +49,7 @@ const TriggerButton = (
ml={ fullView ? 3 : 0 } ml={ fullView ? 3 : 0 }
isActive={ isActive } isActive={ isActive }
onFocusCapture={ onFocusCapture } onFocusCapture={ onFocusCapture }
cursor={ canRate ? 'pointer' : 'default' }
> >
{ !fullView && ( { !fullView && (
<IconSvg <IconSvg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment