SegmentedBar tests fixed.

This commit is contained in:
Nedyalko Nikolov
2017-01-09 17:37:02 +02:00
parent 309ea148e1
commit 5a3cfbeda9
7 changed files with 59 additions and 58 deletions

View File

@@ -86,6 +86,9 @@ export const selectedIndexProperty = new CoercibleProperty<SegmentedBarBase, num
let items = target.items;
if (items) {
let max = items.length - 1;
if (value < 0) {
value = 0;
}
if (value > max) {
value = max;
}