Skip to content

Commit

Permalink
refactor: remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Feb 28, 2021
1 parent 0ab98dd commit b659368
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/click.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ function clickElement(element, init, {clickCount}) {
element,
getMouseEventOptions('mousedown', init, clickCount),
)
if (
continueDefaultHandling &&
element !== element.ownerDocument.activeElement
) {
if (continueDefaultHandling) {
const closestFocusable = findClosest(element, isFocusable)
if (previousElement && !closestFocusable) {
blur(previousElement, init)
Expand Down

0 comments on commit b659368

Please sign in to comment.