@nextui-org/aria-utils
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -164,4 +164,3 @@ "use client"; | ||
let acceptNode = (node) => { | ||
const parentElement = node.parentElement; | ||
if (visibleNodes.has(node) || hiddenNodes.has(parentElement) && parentElement.getAttribute("role") !== "row") { | ||
if (visibleNodes.has(node) || node.parentElement && hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute("role") !== "row") { | ||
return NodeFilter.FILTER_REJECT; | ||
@@ -168,0 +167,0 @@ } |
@@ -39,4 +39,3 @@ "use client"; | ||
let acceptNode = (node) => { | ||
const parentElement = node.parentElement; | ||
if (visibleNodes.has(node) || hiddenNodes.has(parentElement) && parentElement.getAttribute("role") !== "row") { | ||
if (visibleNodes.has(node) || node.parentElement && hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute("role") !== "row") { | ||
return NodeFilter.FILTER_REJECT; | ||
@@ -43,0 +42,0 @@ } |
@@ -141,4 +141,3 @@ "use client"; | ||
let acceptNode = (node) => { | ||
const parentElement = node.parentElement; | ||
if (visibleNodes.has(node) || hiddenNodes.has(parentElement) && parentElement.getAttribute("role") !== "row") { | ||
if (visibleNodes.has(node) || node.parentElement && hiddenNodes.has(node.parentElement) && node.parentElement.getAttribute("role") !== "row") { | ||
return NodeFilter.FILTER_REJECT; | ||
@@ -145,0 +144,0 @@ } |
{ | ||
"name": "@nextui-org/aria-utils", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "A package for managing @react-aria nextui utils.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52498
1576