         nonOverlappingElements.push {element: visibleElement.element, rect: rects[0]}
       else
         # Every part of the element is covered by some other element, so just insert the whole element's
-        # rect.
+        # rect. Except for elements with tabIndex set; these are often more trouble than they're worth.
         # TODO(mrmr1993): This is probably the wrong thing to do, but we don't want to stop being able to
         # click some elements that we could click before.
-        nonOverlappingElements.push visibleElement
+        nonOverlappingElements.push visibleElement unless visibleElement.onlyHasTabIndex
 
     nonOverlappingElements
 


      # Check for attributes that make an element clickable regardless of its tagName.
      if (element.hasAttribute("onclick") or
          element.hasAttribute("tabindex") or
          element.getAttribute("role")?.toLowerCase() in ["button", "link"] or
          element.getAttribute("class")?.toLowerCase().indexOf("button") >= 0 or
          element.getAttribute("contentEditable")?.toLowerCase() in ["", "contentEditable", "true"])

    for element in elements
      tagName = element.tagName.toLowerCase()
      isClickable = false
      onlyHasTabIndex = false

      # Insert area elements that provide click functionality to an img.
      if tagName == "img"
