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

Function removeClone

core/src/utils/input-shims/hacks/common.ts:95–103  ·  view source on GitHub ↗
(componentEl: HTMLElement, inputEl: HTMLElement)

Source from the content-addressed store, hash-verified

93};
94
95const removeClone = (componentEl: HTMLElement, inputEl: HTMLElement) => {
96 const clone = cloneMap.get(componentEl);
97 if (clone) {
98 cloneMap.delete(componentEl);
99 clone.remove();
100 }
101 componentEl.style.pointerEvents = '';
102 inputEl.style.transform = '';
103};
104
105/**
106 * Factoring in 50px gives us some room

Callers 1

relocateInputFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected