Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / EDITOR_OWNED_SELECTOR

Variable: EDITOR_OWNED_SELECTOR

const EDITOR_OWNED_SELECTOR: "[data-kanuni-editor]" = '[data-kanuni-editor]'

Elements that are part of an open editor (P-4). The grid puts it on the box it draws a column's renderEditor in; an app may put it on an editor's own popup or dialog. Focus moving into one is not "leaving the cell" (the P-10 row send, ctx.commitOnBlur). Inside the grid, keys whose target is in one are the EDITOR's: the grid's own key handling (navigation, F2, Escape, typing-to-edit) leaves them alone; the app's onKeyDown hook still sees them. A key whose target is OUTSIDE the grid's DOM — an app dialog portaled to <body>, marked or not — is never the grid's (eventFromOwnDom).