We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bece065 commit 7c52e1aCopy full SHA for 7c52e1a
src/CornerstoneViewport/CornerstoneViewport.js
@@ -323,12 +323,12 @@ class CornerstoneViewport extends Component {
323
324
// Enable the DOM Element for use with Cornerstone
325
const onElementEnabled = function(evt) {
326
- const enabledElement = evt.detail;
+ const enabledElement = evt.detail.element;
327
console.warn('no match');
328
if (enabledElement === this.element) {
329
console.warn('match');
330
if (this.props.onElementEnabled) {
331
- this.props.onElementEnabled(event);
+ this.props.onElementEnabled(evt);
332
}
333
cornerstone.events.removeEventListener(
334
cornerstone.EVENTS.ELEMENT_ENABLED,
0 commit comments