Fix problem with focus
This commit is contained in:
1 parent
686acabd9f
commit
fc9a0941db
2 files changed
+30
-11
No files matched your search
@@ -115,15 +115,17 @@ function ViewerViewportGrid(props) {
|
||||
viewportComponents
|
||||
);
|
||||
|
||||
const onInterationHandler = () => {
|
||||
setActiveViewportIndex(viewportIndex);
|
||||
};
|
||||
|
||||
viewportPanes[i] = (
|
||||
<ViewportPane
|
||||
key={viewportIndex}
|
||||
className="m-1"
|
||||
acceptDropsFor="displayset"
|
||||
onDrop={onDropHandler.bind(null, viewportIndex)}
|
||||
onInteraction={() => {
|
||||
setActiveViewportIndex(viewportIndex);
|
||||
}}
|
||||
onInteraction={onInterationHandler}
|
||||
isActive={activeViewportIndex === viewportIndex}
|
||||
>
|
||||
<ViewportComponent
|
||||
|
||||
Reference in new issue
Block a user