From 5bf4bc4f9c9c7ee6500b2b050719db5e91769daa Mon Sep 17 00:00:00 2001 From: Mike Plummer Date: Mon, 29 Apr 2024 17:24:51 -0500 Subject: [PATCH] Update src/index.js Co-authored-by: Tyler Biethman --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index d3c7285..55d4e72 100644 --- a/src/index.js +++ b/src/index.js @@ -147,7 +147,7 @@ function getUniqueSelector( element, selectorTypes, attributesToIgnore, filter ) // if we found a selector via attribute if ( attributeSelector ) { - selector = getAttributeSelector( element, attributeToQuery, filter ); + selector = attributeSelector selectorType = 'attribute'; } }