This is a migrated thread and some comments may be shown as answers.

splitbar adds tabIndex even though it is not resizable or collapsible

2 Answers 48 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 26 Aug 2014, 04:00 PM
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:

    $(".k-splitbar").removeAttr("tabIndex");

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 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 28 Aug 2014, 12:01 PM
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.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jon
Top achievements
Rank 1
answered on 28 Aug 2014, 02:48 PM
Great! Thank you! That selector works like a charm!
Tags
Splitter
Asked by
Jon
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jon
Top achievements
Rank 1
Share this question
or