@kanunilabs/datagrid-react / eventFromOwnDom
Function: eventFromOwnDom()
eventFromOwnDom(
event,ownPortals?):boolean
Did this event start inside currentTarget's DOM? React routes events from a
portal through the COMPONENT tree: a dialog an app's custom editor opens
(portaled to <body>) still bubbles through the cell, the row, the
scroller and the grid root (P-4.7). Every grid handler asks this first and
ignores events from outside its own subtree. ownPortals: also count the
grid's own popups (they are portaled too, and are the grid's).
Parameters
event
currentTarget
EventTarget | null
target
EventTarget | null
ownPortals?
boolean = false
Returns
boolean