Skip to content

Commit f22f419

Browse files
committed
Removed ' selectable' property
1 parent fd28e4b commit f22f419

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/lib/list/selection-list.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ export class MdSelectionList extends _MdSelectionListMixinBase
6767
/** Subscription to option changes from the selection-list. */
6868
private _optionsChangeSubscription: Subscription;
6969

70-
/** Whether or not the option is selectable. */
71-
protected _selectable: boolean = true;
72-
7370
/** The FocusKeyManager which handles focus. */
7471
_keyManager: FocusKeyManager;
7572

@@ -117,16 +114,6 @@ export class MdSelectionList extends _MdSelectionListMixinBase
117114
}
118115
}
119116

120-
/**
121-
* Whether or not this option is selectable. When a option is not selectable,
122-
* its selected state is always ignored.
123-
*/
124-
@Input()
125-
get selectable(): boolean { return this._selectable; }
126-
set selectable(value: boolean) {
127-
this._selectable = coerceBooleanProperty(value);
128-
}
129-
130117
focus() {
131118
this._element.nativeElement.focus();
132119
}
@@ -146,10 +133,6 @@ export class MdSelectionList extends _MdSelectionListMixinBase
146133

147134
/** Toggles the selected state of the currently focused option. */
148135
protected _toggleSelectOnFocusedOption(): void {
149-
if (!this.selectable) {
150-
return;
151-
}
152-
153136
let focusedIndex = this._keyManager.activeItemIndex;
154137

155138
if (focusedIndex != null && this._isValidIndex(focusedIndex)) {
@@ -161,7 +144,6 @@ export class MdSelectionList extends _MdSelectionListMixinBase
161144
}
162145
}
163146

164-
165147
/**
166148
* Iterate through the list of options and add them to our list of
167149
* subscribed options.

0 commit comments

Comments
 (0)