Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

fix(list): Update default notifyAction impl to emit object #4356

Merged
merged 6 commits into from
Feb 5, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/mdc-list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class MDCList extends MDCComponent {
toggleEl.dispatchEvent(event);
},
notifyAction: (index) => {
this.emit(strings.ACTION_EVENT, index, /** shouldBubble */ true);
this.emit(strings.ACTION_EVENT, {index}, /** shouldBubble */ true);
},
isFocusInsideList: () => {
return this.root_.contains(document.activeElement);
Expand Down