jQuery-Mask-Plugin icon indicating copy to clipboard operation
jQuery-Mask-Plugin copied to clipboard

using mask on right to left inputs `dir="rtl"`

Open azerafati opened this issue 12 years ago • 9 comments

if you mark an input like that for rtl languages, the caret tends to stick to the beginning of the input characters and not moving to the end.

azerafati avatar May 01 '14 06:05 azerafati

Hi @blusakura can you provide a functional jsfiddle with your use case? I'm not sure what is wrong with your scenario.

igorescobar avatar May 05 '14 12:05 igorescobar

check this out, http://jsfiddle.net/4jeUr/!!!

azerafati avatar May 06 '14 06:05 azerafati

I also noticed that the problem is coming from the space character!! it seems in rtl space is causing this issue.

azerafati avatar May 06 '14 06:05 azerafati

@blusakura now I realize what you mean. Thanks for the jsfiddle! The direction:rtl was never tested so I don't recommend you to use it until we test it and make it "public" as a feature.

igorescobar avatar May 06 '14 12:05 igorescobar

+1

CarlosLCervantes avatar Aug 28 '14 20:08 CarlosLCervantes

+1

Heirema avatar Aug 19 '16 17:08 Heirema

+1

mabarbosa avatar Feb 06 '17 17:02 mabarbosa

On the setCaret function, i've changed to setTimeout(ctrl.setSelectionRange(pos, pos), 0); and this fixed this issue on Android 6.0.1. I know this is not the best solution.. but...

mabarbosa avatar Feb 06 '17 17:02 mabarbosa

@mabarbosa is this still an issue?

igorescobar avatar Feb 13 '17 14:02 igorescobar