Skip to content

missing tabindex functionality #5

Description

@jason-pinson

Awesome plugin!
Please consider adding something like the following to the end of the DateTextInput creation so it will take on the tabindex of the it replaces.

if (this.dte.$element.attr("tabindex")) {
this.$input.attr('tabindex', this.index + parseInt(this.dte.$element.attr("tabindex")));
}

Thx!

REVISION 11.17.2015!
Actually, it may be better to set the tabindex to the same values on all three inputs (not adding "this.index" to the element's tabindex). This way, the three inner text inputs will have the same taindex, so source(DOM) order will determine their tabbing order, and that should be normal left to right... and, the parent form/page will not have to accomodate with gaps in the tabindex at design time. So, proposed code is just:
if (this.dte.$element.attr("tabindex")) {
this.$input.attr('tabindex', parseInt(this.dte.$element.attr("tabindex")));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions