splitbar adds tabIndex even though it is not resizable or collapsible

3 posts, 1 answers
  1. Jon
    Jon avatar
    14 posts
    Member since:
    Sep 2009

    Posted 26 Aug 2014 Link to this post

    I noticed that when the Splitter adds the splitbars it will add a tabIndex="0" event though the panes are not resizable or collapsible. I would think that there is no need for the splitbars to receive focus if you can't do anything with them.

    Does that make sense?

    For now I was going to do something like this:


    Do you see any potential problems with this code?

    This removes being able to set focus to any splitbar, even if it can be resized.

    What do you think? Thank you!
  2. Answer
    Dimo avatar
    8318 posts

    Posted 28 Aug 2014 Link to this post

    Hi Jon,

    You are right - a tabindex is not needed by the splitbars, which cannot be dragged and do not contain expand/collapse buttons.

    We have modified the Splitter code and changes will take effect in the next Kendo UI builds.

    In the meantime, if you want to remove the tabindexes manually, then use a different selector, which will NOT target splitbars that need a tabindex:

    $(".k-splitbar-static-vertical, .k-splitbar-static-horizontal")

    If you don't need to support keyboard navigation, the tabindex doesn't matter.

    I have updated your Telerik points.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Jon
    Jon avatar
    14 posts
    Member since:
    Sep 2009

    Posted 28 Aug 2014 in reply to Dimo Link to this post

    Great! Thank you! That selector works like a charm!
Back to Top