Skip to content

Commit eba2862

Browse files
committed
fix(input): apply transform css prefix
1 parent 5bcd7f2 commit eba2862

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/input/native-input.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class NativeInput {
146146

147147
if (shouldHideFocus) {
148148
cloneInputComponent(focusedInputEle);
149-
focusedInputEle.style.transform = 'scale(0)';
149+
(<any>focusedInputEle.style)[CSS.transform] = 'scale(0)';
150150

151151
} else {
152152
removeClone(focusedInputEle);
@@ -209,7 +209,7 @@ function cloneInputComponent(srcNativeInputEle: HTMLInputElement) {
209209
srcComponentEle.style.pointerEvents = 'none';
210210
}
211211

212-
srcNativeInputEle.style.transform = 'scale(0)';
212+
(<any>srcNativeInputEle.style)[CSS.transform] = 'scale(0)';
213213
}
214214

215215
function removeClone(srcNativeInputEle: HTMLElement) {
@@ -222,7 +222,7 @@ function removeClone(srcNativeInputEle: HTMLElement) {
222222

223223
srcComponentEle.style.pointerEvents = '';
224224
}
225-
srcNativeInputEle.style.transform = '';
225+
(<any>srcNativeInputEle.style)[CSS.transform] = '';
226226
srcNativeInputEle.style.opacity = '';
227227
}
228228

0 commit comments

Comments
 (0)