mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(input): apply transform css prefix
This commit is contained in:
@@ -146,7 +146,7 @@ export class NativeInput {
|
||||
|
||||
if (shouldHideFocus) {
|
||||
cloneInputComponent(focusedInputEle);
|
||||
focusedInputEle.style.transform = 'scale(0)';
|
||||
(<any>focusedInputEle.style)[CSS.transform] = 'scale(0)';
|
||||
|
||||
} else {
|
||||
removeClone(focusedInputEle);
|
||||
@@ -209,7 +209,7 @@ function cloneInputComponent(srcNativeInputEle: HTMLInputElement) {
|
||||
srcComponentEle.style.pointerEvents = 'none';
|
||||
}
|
||||
|
||||
srcNativeInputEle.style.transform = 'scale(0)';
|
||||
(<any>srcNativeInputEle.style)[CSS.transform] = 'scale(0)';
|
||||
}
|
||||
|
||||
function removeClone(srcNativeInputEle: HTMLElement) {
|
||||
@@ -222,7 +222,7 @@ function removeClone(srcNativeInputEle: HTMLElement) {
|
||||
|
||||
srcComponentEle.style.pointerEvents = '';
|
||||
}
|
||||
srcNativeInputEle.style.transform = '';
|
||||
(<any>srcNativeInputEle.style)[CSS.transform] = '';
|
||||
srcNativeInputEle.style.opacity = '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user