fix: OHIF-307 - Click outside patient info should close tooltip (#1886)

This commit is contained in:
Rodrigo Antinarelli authored and GitHub committed 2020-07-22 21:07:20 +02:00
1 parent a6b7657840
commit afcd3f5263
5 files changed
+109 -90

No files matched your search

@@ -1,9 +1,8 @@
import React, { useRef } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { useDrag } from 'react-dnd';
import { Icon } from '@ohif/ui';
import blurHandlerListener from '../../utils/blurHandlerListener';
/**
*
@@ -31,12 +30,8 @@ const Thumbnail = ({
},
});
const thumbnailElement = useRef(null);
return (
<div
onFocus={() => blurHandlerListener(thumbnailElement)}
ref={thumbnailElement}
className={classnames(
className,
'flex flex-col flex-1 px-3 mb-8 cursor-pointer outline-none select-none group'