mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
handle blur on topology tooltips
This commit is contained in:
parent
b0a266a020
commit
398071ade2
@ -37,6 +37,7 @@ const Services = (props) => {
|
||||
const service = services.reduce((acc, service) =>
|
||||
service.uuid === tooltipData.service ? service : acc
|
||||
, {});
|
||||
|
||||
const ttData = {
|
||||
...tooltipData,
|
||||
data: {
|
||||
@ -45,9 +46,14 @@ const Services = (props) => {
|
||||
projectId: project.id
|
||||
}
|
||||
};
|
||||
|
||||
toggleTooltip(ttData);
|
||||
};
|
||||
|
||||
const handleTooltipBlur = (evt) => onQuickActions(evt, {
|
||||
service: uiTooltip.service
|
||||
});
|
||||
|
||||
return (
|
||||
<StyledBackground>
|
||||
<StyledContainer>
|
||||
@ -55,7 +61,7 @@ const Services = (props) => {
|
||||
onQuickActions={onQuickActions}
|
||||
services={services}
|
||||
/>
|
||||
<ServicesTooltip {...uiTooltip} />
|
||||
<ServicesTooltip {...uiTooltip} onBlur={handleTooltipBlur} />
|
||||
</StyledContainer>
|
||||
</StyledBackground>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user