angular-moment-picker icon indicating copy to clipboard operation
angular-moment-picker copied to clipboard

Form tags tabindex

Open ghost opened this issue 8 years ago • 2 comments

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 avatar Aug 16 '17 12:08 ghost

I have the same issue

Hasan-git avatar Aug 24 '18 21:08 Hasan-git

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 :)

SylwesterBzdyl avatar Dec 02 '22 16:12 SylwesterBzdyl