diff --git a/src/components/input/native-input.ts b/src/components/input/native-input.ts index 32db987b04a..9ba2f5a3021 100644 --- a/src/components/input/native-input.ts +++ b/src/components/input/native-input.ts @@ -146,7 +146,7 @@ export class NativeInput { if (shouldHideFocus) { cloneInputComponent(focusedInputEle); - focusedInputEle.style.transform = 'scale(0)'; + (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)'; + (srcNativeInputEle.style)[CSS.transform] = 'scale(0)'; } function removeClone(srcNativeInputEle: HTMLElement) { @@ -222,7 +222,7 @@ function removeClone(srcNativeInputEle: HTMLElement) { srcComponentEle.style.pointerEvents = ''; } - srcNativeInputEle.style.transform = ''; + (srcNativeInputEle.style)[CSS.transform] = ''; srcNativeInputEle.style.opacity = ''; }