Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ unfocus
Function
unfocus
javascript/atoms/typescript/clear.ts:69–71 ·
view source on GitHub ↗
(element: Element)
Source
from the content-addressed store, hash-verified
67
68
// Focusing the body cannot take focus, so this blurs whatever has it.
69
function
unfocus(element: Element): void {
70
focusOnElement(element.ownerDocument.body)
71
}
72
73
export
default clear
Callers
1
clear
Function · 0.85
Calls
1
focusOnElement
Function · 0.85
Tested by
no test coverage detected