fix: OHIF-307 - Click outside patient info should close tooltip (#1886)
This commit is contained in:
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 classnames from 'classnames';
|
||||
import PropTypes from 'prop-types';
|
||||
import { useDrag } from 'react-dnd';
|
||||
import { Icon, Tooltip, Typography } from '@ohif/ui';
|
||||
import blurHandlerListener from '../../utils/blurHandlerListener';
|
||||
|
||||
const ThumbnailNoImage = ({
|
||||
displaySetInstanceUID,
|
||||
@@ -23,12 +22,8 @@ const ThumbnailNoImage = ({
|
||||
},
|
||||
});
|
||||
|
||||
const thumbnailElement = useRef(null);
|
||||
|
||||
return (
|
||||
<div
|
||||
ref={thumbnailElement}
|
||||
onFocus={() => blurHandlerListener(thumbnailElement)}
|
||||
className={classnames(
|
||||
'flex flex-row flex-1 cursor-pointer outline-none border-transparent hover:border-blue-300 focus:border-blue-300 rounded select-none',
|
||||
isActive ? 'border-2 border-primary-light' : 'border'
|
||||
|
||||
Reference in new issue
Block a user