RobinHerbots/jquery.inputmask — Issue #27: Feature: RTL support
Author: Webunity
Created: 2012-02-14 11:30:29+00:00
State: open

This is somewhat related to my previously entered issue, but it would complicate the previous issue to much, therefore a new issue.

When, in a normal input field, you have the following configuration:
- style="text-align: right;"
- maxlength="5"
- $('field).inputmask({ mask: '99999', clearIncomplete: true });
- And start typing text "123"

You get: "123__"

But, since we right align the text, we would expect: "__123"

So i added the "dir" property: dir="RTL" which nicely right aligns.
But, typing "123" puts the cursor before the 1; giving "__|123" while the cursor should be "__123|"
Also, tabbing out of this field clears the field entirely.

Again, it could be that i am missing settings, but inputmask should respect the dir property.