Is there a way to prevent the default behavior of the a tag with the tabindex = '-1' attribute?
问题 when the descendant node of the region with tabindex -1 (this is a modal dialog window) has a tag, in the macOS safari browser I needed the tabindex = '-1' attribute to trigger the click event on the a tag. However, this causes an issue where the modal scroll goes up when clicking the a tag. The same issue occurred when adding the href = "javascript: void (0)" attribute to the a tag and calling e.preventDefault() inside a function that works when a tag click event is called. <div tabindex="-1