Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

find cell id through shadow doms (#6929)

Shahmir Varqha89cd0272ac05
diff --git a/frontend/src/core/cells/ids.ts b/frontend/src/core/cells/ids.ts
index 9e0f3c607d..41310763d9 100644
--- a/frontend/src/core/cells/ids.ts
+++ b/frontend/src/core/cells/ids.ts
@@ -94,7 +94,7 @@ export const HTMLCellId = {
*/
export function findCellId(element: HTMLElement): CellId | null {
let cellId: CellId | null = null;
- const cellContainer = HTMLCellId.findElement(element);
+ const cellContainer = HTMLCellId.findElementThroughShadowDOMs(element);
if (cellContainer) {
cellId = HTMLCellId.parse(cellContainer.id);
}