Skip to content

Commit

Permalink
[angular-material] Fix update of selection
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarmueller committed Apr 25, 2019
1 parent 2f6503d commit 6a8d56a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/angular-material/src/other/master-detail/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ export class MasterListComponent extends JsonFormsArrayControl {
if (
newSelectedItem !== undefined &&
this.selectedItem !== undefined &&
newSelectedItem.path === this.selectedItem.path
(newSelectedItem.label === this.selectedItem.label ||
newSelectedItem.path === this.selectedItem.path)
) {
// after checking that we are on the same path, set selection
this.selectedItem = newSelectedItem;
Expand Down

0 comments on commit 6a8d56a

Please sign in to comment.