octicon-rss(16/)
You've already forked ionic-framework
mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 22:44:13 +08:00
chore(): enable "prefer-for-of"
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 7 changed files with 69 additions and 76 deletions
@@ -38,10 +38,9 @@ export function isFocused(input: HTMLInputElement): boolean {
|
||||
|
||||
function removeClone(componentEl: HTMLElement, inputEl: HTMLElement) {
|
||||
if (componentEl && componentEl.parentElement) {
|
||||
const clonedInputEles = componentEl.parentElement.querySelectorAll('.cloned-input');
|
||||
for (let i = 0; i < clonedInputEles.length; i++) {
|
||||
clonedInputEles[i].remove();
|
||||
}
|
||||
Array.from(componentEl.parentElement.querySelectorAll('.cloned-input'))
|
||||
.forEach(clon => clon.remove());
|
||||
|
||||
componentEl.style.pointerEvents = '';
|
||||
}
|
||||
(inputEl.style as any)['transform'] = '';
|
||||
|
||||
Reference in New Issue
Block a user