Skip to content

Commit

Permalink
fix(input): add correct translate3d for rtl
Browse files Browse the repository at this point in the history
thanks @Khalid-Nowaf

fixes #11745
fixes #11211
  • Loading branch information
manucorporat committed Jun 12, 2017
1 parent 6dee17b commit ef85ba6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,9 @@ export class TextInput extends BaseInput<string> implements IonicFormInput {
// We hide the focused input (with the visible caret) invisiable by making it scale(0),
cloneInputComponent(platform, componentEle, focusedInputEle);
const inputRelativeY = this._getScrollData().inputSafeY;
focusedInputEle.style[platform.Css.transform] = `translate3d(-9999px,${inputRelativeY}px,0)`;
// fix for #11817
const tx = this._plt.isRTL ? 9999 : -9999;
focusedInputEle.style[platform.Css.transform] = `translate3d(${tx}px,${inputRelativeY}px,0)`;
focusedInputEle.style.opacity = '0';

} else {
Expand Down

0 comments on commit ef85ba6

Please sign in to comment.