Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot overwrite selected characters in previous field after shift + tab #100

Open
7373Lacym opened this issue Jul 7, 2016 · 0 comments

Comments

@7373Lacym
Copy link

7373Lacym commented Jul 7, 2016

I have the following 3 fields.

<html>
<head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
    <script src="jquery.autotab.js"></script>
</head>

<input placeholder="MM" type="tel" class="input-text birthday-field" size="25" maxlength="2" />

<input id="dob-day" placeholder="DD" type="tel" class="input-text birthday-field" size="  25" maxlength="2" value="" name="dob-day" />

<input id="dob-year" placeholder="YYYY" type="tel" class="input-text birthday-field" size="25" maxlength="4" value="" name="dob-year" />

<script>
    $('.input-text.birthday-field').autotab();
</script>
</html>

Let's say I make a typo and want to tab back to the previous input field. I press shift+tab but when I try to enter more data the cursor autotabs to the next field. I'm not sure if this is the intended behavior? If I hit backspace it works. I have tried using different autotab assignments such as:

$('.input-text.birthday-field').autotab({previous: $(this).prev(), tabOnSelect: true, target: $(this).next()});

to no avail. I have looked in the closed issues/known problems and couldnt find anything similar.

This is happening on chrome 51 and safari.

EDIT:

This can be solved by removing the input type of TEL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant