@@ -67,9 +67,6 @@ export class MdSelectionList extends _MdSelectionListMixinBase
67
67
/** Subscription to option changes from the selection-list. */
68
68
private _optionsChangeSubscription : Subscription ;
69
69
70
- /** Whether or not the option is selectable. */
71
- protected _selectable : boolean = true ;
72
-
73
70
/** The FocusKeyManager which handles focus. */
74
71
_keyManager : FocusKeyManager ;
75
72
@@ -117,16 +114,6 @@ export class MdSelectionList extends _MdSelectionListMixinBase
117
114
}
118
115
}
119
116
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
-
130
117
focus ( ) {
131
118
this . _element . nativeElement . focus ( ) ;
132
119
}
@@ -146,10 +133,6 @@ export class MdSelectionList extends _MdSelectionListMixinBase
146
133
147
134
/** Toggles the selected state of the currently focused option. */
148
135
protected _toggleSelectOnFocusedOption ( ) : void {
149
- if ( ! this . selectable ) {
150
- return ;
151
- }
152
-
153
136
let focusedIndex = this . _keyManager . activeItemIndex ;
154
137
155
138
if ( focusedIndex != null && this . _isValidIndex ( focusedIndex ) ) {
@@ -161,7 +144,6 @@ export class MdSelectionList extends _MdSelectionListMixinBase
161
144
}
162
145
}
163
146
164
-
165
147
/**
166
148
* Iterate through the list of options and add them to our list of
167
149
* subscribed options.
0 commit comments