Skip to content

Commit

Permalink
feat: Selection notification now returns the item object.
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Selection notifications do not directly gives the name of the selected item anymore but the corresponding model item.
  • Loading branch information
QuentinRoy committed Jul 20, 2017
1 parent 2895f30 commit f93aa91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export default (items, parentDOM) => {
action$.subscribe();
return action$
.filter(notif => notif.type === 'select')
.pluck('selection', 'name');
.pluck('selection');
};

0 comments on commit f93aa91

Please sign in to comment.