From 082ce29145a192755a1ed4a27750513dbde79117 Mon Sep 17 00:00:00 2001
From: Constance Chen
Date: Fri, 18 Mar 2022 11:56:54 -0700
Subject: [PATCH 1/2] Deprecate the `closePopover` callback passed to
`cellActions` in favor of using the ref method
---
.../datagrid/cells_popovers/datagrid_cells_example.js | 11 ++++++++---
src/components/datagrid/body/data_grid_cell.test.tsx | 2 --
src/components/datagrid/body/data_grid_cell.tsx | 1 -
.../datagrid/body/data_grid_cell_actions.test.tsx | 2 --
.../datagrid/body/data_grid_cell_actions.tsx | 5 +----
src/components/datagrid/data_grid_types.ts | 5 -----
upcoming_changelogs/5734.md | 3 +++
7 files changed, 12 insertions(+), 17 deletions(-)
create mode 100644 upcoming_changelogs/5734.md
diff --git a/src-docs/src/views/datagrid/cells_popovers/datagrid_cells_example.js b/src-docs/src/views/datagrid/cells_popovers/datagrid_cells_example.js
index c5e7bff6f9f..015a9992522 100644
--- a/src-docs/src/views/datagrid/cells_popovers/datagrid_cells_example.js
+++ b/src-docs/src/views/datagrid/cells_popovers/datagrid_cells_example.js
@@ -75,13 +75,18 @@ export const DataGridCellsExample = {
cellAction property, the cell's
automatically expandable.
+
+ To close a cell's expansion popover upon clicking an action,
+ use the{' '}
+
+ closeCellPopover
+ {' '}
+ API available via the ref prop.
+
Below, the email and city columns provide 1{' '}
cellAction each, while the country column
provides 2 cellActions.
-
- The email column cell action closes the popover if it's
- expanded through the closePopover prop.