Skip to content

Commit

Permalink
fix(input): apply transform css prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Dec 6, 2016
1 parent 5bcd7f2 commit eba2862
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/input/native-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand All @@ -222,7 +222,7 @@ function removeClone(srcNativeInputEle: HTMLElement) {

srcComponentEle.style.pointerEvents = '';
}
srcNativeInputEle.style.transform = '';
(<any>srcNativeInputEle.style)[CSS.transform] = '';
srcNativeInputEle.style.opacity = '';
}

Expand Down

0 comments on commit eba2862

Please sign in to comment.