Skip to content

Commit

Permalink
Update packages/driver/src/dom/elements.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Feb 27, 2020
1 parent 48c02a7 commit 8af0fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/driver/src/dom/elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const isSvg = function (el): el is SVGElement {
}

// active element is the default if its null
// or it's equal to document.body
// or it's equal to document.body that is not contenteditable
const activeElementIsDefault = (activeElement, body: HTMLElement) => {
return !activeElement || (activeElement === body && !isContentEditable(body))
}
Expand Down

0 comments on commit 8af0fea

Please sign in to comment.