Skip to content

missing tabindex functionality #5

@jason-pinson

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")));

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