Skip to content

Commit ab78883

Browse files
committed
emoved 'if (this.selectable)' check
1 parent 67f3faa commit ab78883

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib/list/list.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,6 @@ export class MdSelectionList implements AfterContentInit, OnDestroy {
320320

321321
/** Toggles the selected state of the currently focused option. */
322322
protected _toggleSelectOnFocusedOption(): void {
323-
// Allow disabling of option selection
324-
if (!this.selectable) {
325-
return;
326-
}
327-
328323
let focusedIndex = this._keyManager.activeItemIndex;
329324

330325
if (typeof focusedIndex === 'number' && this._isValidIndex(focusedIndex)) {
@@ -510,8 +505,7 @@ export class MdListItem implements AfterContentInit {
510505

511506
/** Whether this list item should show a ripple effect when clicked. */
512507
isRippleEnabled() {
513-
return !this.disableRipple && (this._isNavList)
514-
&& !this._list.disableRipple;
508+
return !this.disableRipple && this._isNavList && !this._list.disableRipple;
515509
}
516510

517511
_handleFocus() {

0 commit comments

Comments
 (0)