export function findNearestElement(view, selector) {
  if (!view || view.matches("html")) return null;
  if (!selector) return null;
  return document.querySelector(selector) || findNearestElement(view.parentElement, selector);
}

@@ -139,16 +139,12 @@
 urn 
-document
+view
 .que

Fix Find Nearest Element