Skip to content

Commit f3aaa20

Browse files
author
Jan Miksovsky
committed
Update components in preparation for 0.6.3 release
1 parent aa1aa2e commit f3aaa20

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

basic-item-selection.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,21 @@
266266
is: 'basic-item-selection',
267267

268268
properties: {
269+
270+
selectedIndex: {
271+
type: Number
272+
},
273+
274+
selectedItem: {
275+
type: Object
276+
},
277+
269278
selectionRequired: {
270279
type: Boolean,
271280
observer: 'selectionRequiredChanged',
272281
value: false
273282
}
283+
274284
},
275285

276286
selectFirst: function() {
@@ -294,7 +304,14 @@
294304
},
295305

296306
get selectedIndex() {
297-
return this.collective.selectedIndex;
307+
// HACK: Proxied getter/setter properties like this one can't be set via
308+
// attributes. See https://github.com/Polymer/polymer/issues/2454. We
309+
// currently hack around this by only returning a value for this property if
310+
// the element is ready. A negative side effect is that inspecting this
311+
// property before the element is ready will always return undefined.
312+
if (this._readied) {
313+
return this.collective.selectedIndex;
314+
}
298315
},
299316

300317
get selectedItem() {

bower.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "basic-item-selection",
33
"description": "Aspect which manages selection semantics for items in a list.",
4-
"version": "0.6.2",
4+
"version": "0.6.3",
55
"license": "MIT",
66
"main": "basic-item-selection.html",
77
"dependencies": {
8-
"basic-aspect": "basic-web-components/basic-aspect#0.6.2",
8+
"basic-aspect": "basic-web-components/basic-aspect#0.6.3",
99
"polymer": "Polymer/polymer#^1.1"
1010
},
1111
"devDependencies": {
12-
"basic-framed-content": "basic-web-components/basic-framed-content#0.6.2",
12+
"basic-framed-content": "basic-web-components/basic-framed-content#0.6.3",
1313
"web-component-tester": "*"
1414
},
1515
"keywords": [

0 commit comments

Comments
 (0)