diff --git a/apis/nucleus/src/components/Sheet.jsx b/apis/nucleus/src/components/Sheet.jsx index 4afa0ab26..8f4d130b0 100644 --- a/apis/nucleus/src/components/Sheet.jsx +++ b/apis/nucleus/src/components/Sheet.jsx @@ -1,4 +1,5 @@ import React, { useEffect, useState, useContext, useMemo, forwardRef, useImperativeHandle, useRef } from 'react'; +import EventEmitter from 'node-event-emitter'; import useLayout from '../hooks/useLayout'; import getObject from '../object/get-object'; import Cell from './Cell'; @@ -27,6 +28,8 @@ function getCellRenderer(cell, halo, initialSnOptions, initialSnPlugins, initial style.padding = '4px'; } + const emitter = new EventEmitter(); + return (