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

Form tags tabindex #209

Open
ghost opened this issue Aug 16, 2017 · 2 comments
Open

Form tags tabindex #209

ghost opened this issue Aug 16, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 16, 2017

First of all thanks for your work on this picker.

I got a problem with organizing my form input tabindexs. It seems that the picker overwrites the tabindex always with 0 (Line 303)

Why can't the value be inheritet?

Small Plunker Example for this behavior http://plnkr.co/edit/RYTDM3N9GbJpBZgqbaYR?p=preview

@ghost ghost changed the title Form elements tabindex Form tags tabindex Aug 16, 2017
@Hasan-git
Copy link

I have the same issue

@SylwesterBzdyl
Copy link

I have a solution if you are trying to prevent tabbing into the picker.
The problem is that the keyboard option is never taken into the account when input attribute is added. It will always be 0 regardless of keyboard set to true or false.
You can change the source code (line 505 for me but I've seen some files where it's line 303) to this:
$scope.input.addClass('moment-picker-input').attr('tabindex', $scope.keyboard ? 0 : -1);

Hope that helps :)

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

2 participants