MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / blurActiveElement

Function blurActiveElement

core/src/utils/gesture/index.ts:148–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146 };
147
148 const blurActiveElement = () => {
149 if (typeof document !== 'undefined') {
150 const activeElement = document.activeElement as HTMLElement | null;
151 if (activeElement?.blur) {
152 activeElement.blur();
153 }
154 }
155 };
156
157 const fireOnStart = () => {
158 if (blurOnStart) {

Callers 1

fireOnStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected