Hello,
It is possible that with the last update (2014.1.416) there was introduced some optimization which in fact break some functionality.
Here is what I observed:
We had in our code
tabstrip.Add().Text("Tab caption").Content("").Enabled(false);
This will produce a markup for the tab ear which includes an aria-controls="undefined"
Further debuging reflects a possible bug on the _updateContentElements function, it seems that content elements are not rendere anymore for the tabs with empty content. This will result in the following if being evaluated to TRUE
if (contentElements.length && (items.length > contentElements.length)) {
and inside of it the aria-controls is somehow messed up because first is assumed that there is an area-controls , then an "aria" data is set, and then the aria-controls is set from the "aria" data, this results in the end in to aria-controls = "undefined"
To workaround this issue I had to change the above line to something similar to
tabstrip.Add().Text("Tab caption").Content(" ").Enabled(false);
This will make the IF above being evaluated as FALSE and then the other path creates proper aria-controls attribute
The problem is that with this approach the tabs behave like "disabled" but they does not look like disabled.
Vasile
It is possible that with the last update (2014.1.416) there was introduced some optimization which in fact break some functionality.
Here is what I observed:
We had in our code
tabstrip.Add().Text("Tab caption").Content("").Enabled(false);
This will produce a markup for the tab ear which includes an aria-controls="undefined"
Further debuging reflects a possible bug on the _updateContentElements function, it seems that content elements are not rendere anymore for the tabs with empty content. This will result in the following if being evaluated to TRUE
if (contentElements.length && (items.length > contentElements.length)) {
and inside of it the aria-controls is somehow messed up because first is assumed that there is an area-controls , then an "aria" data is set, and then the aria-controls is set from the "aria" data, this results in the end in to aria-controls = "undefined"
To workaround this issue I had to change the above line to something similar to
tabstrip.Add().Text("Tab caption").Content(" ").Enabled(false);
This will make the IF above being evaluated as FALSE and then the other path creates proper aria-controls attribute
The problem is that with this approach the tabs behave like "disabled" but they does not look like disabled.
Vasile