diff --git a/polymer-selector/polymer-selector.html b/polymer-selector/polymer-selector.html
index 136dbe4..d5082dc 100644
--- a/polymer-selector/polymer-selector.html
+++ b/polymer-selector/polymer-selector.html
@@ -60,7 +60,7 @@
+ attributes="selected multi valueattr selectedClass selectedProperty selectedItem selectedModel selectedIndex notap target itemsSelector activateEvent">
@@ -150,6 +150,14 @@
* @default null
*/
selectedModel: null,
+ /**
+ * In single selection, this returns the selected index.
+ *
+ * @attribute selectedIndex
+ * @type number
+ * @default -1
+ */
+ selectedIndex: -1,
/**
* The target element that contains items. If this is not set
* polymer-selector is the container.
@@ -269,6 +277,8 @@
} else {
this.selectedModel = null;
}
+ this.selectedIndex = this.selectedItem ?
+ parseInt(this.valueToIndex(this.selected)) : -1;
},
valueToIndex: function(value) {
// find an item with value == value and return it's index