Skip to content

Commit

Permalink
ftest resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnadipa-dev committed Aug 7, 2023
1 parent 47b949b commit 7253916
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions elements/nuxeo-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -992,15 +992,21 @@ Polymer({
},

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

Expand Down

0 comments on commit 7253916

Please sign in to comment.