Skip to content

Commit

Permalink
fix(Datagrid): check for document before continuing (carbon-design-sy…
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo authored Feb 5, 2024
1 parent 778dd03 commit 0ec7196
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react/prop-types */
/**
* Copyright IBM Corp. 2020, 2023
* Copyright IBM Corp. 2020, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand All @@ -25,7 +25,7 @@ const useNestedRowExpander = (hooks) => {
instance: tempState?.current,
lastExpandedRowIndex: lastExpandedRowIndex?.current,
blockClass,
activeElement: document.activeElement,
activeElement: typeof document !== 'undefined' && document.activeElement,
});

const visibleColumns = (columns) => {
Expand Down

0 comments on commit 0ec7196

Please sign in to comment.