Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnadipa-dev committed Aug 9, 2023
1 parent 8c4bf40 commit a7f0d88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions elements/nuxeo-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -993,11 +993,12 @@ Polymer({

_toggleDrawer(e, selectedObj) {
const selectedItem = e.type === 'keyup' ? selectedObj : e;
const selectedItemDetail = selectedItem.detail ? selectedItem.detail : 0;
if (this._selected === selectedItemDetail && selectedItemDetail.selected && this.drawerOpened) {
const selectedItemDetailSelected =
selectedItem.detail && selectedItem.detail.selected ? selectedItem.detail.selected : 0;
if (this._selected === selectedItemDetailSelected && this.drawerOpened) {
this._closeDrawer();
} else {
this._selected = this.selectedTab = (selectedItemDetail && selectedItemDetail.selected) || selectedItem;
this._selected = this.selectedTab = selectedItemDetailSelected;
this._openDrawer();
}
},
Expand Down

0 comments on commit a7f0d88

Please sign in to comment.