Christopher,
Great catch. I have not noticed this bug before. You should call it into esri tech support as it looks like 2.2 will have this issue as well.
Here is the workaround you can apply to fix this though:
In the [install dir]\jimu.js\PopupManager.js replace the _createPopupMenuButton function with this one:
_createPopupMenuButton: function(){
if(query(".popup-menu-button", query(".actionList", this.popupUnion.bigScreen.domNode)[0])[0]){
html.destroy(query(".popup-menu-button", query(".actionList", this.popupUnion.bigScreen.domNode)[0])[0]);
}
html.destroy(query(".popup-menu-button", query(".actionList", this.popupUnion.bigScreen.domNode)[0])[0]);
this.popupMenuButtonDesktop = html.create('span', {
'class': 'popup-menu-button'
}, query(".actionList", this.popupUnion.bigScreen.domNode)[0]);
var mobileActionListNode = query(".esriMobilePopupInfoView .esriMobileInfoViewItem").parent()[0];
if(query(".esriMobileInfoViewItem", mobileActionListNode)[0]){
html.destroy(query(".esriMobileInfoViewItem", mobileActionListNode)[0]);
}
var mobileViewItem = html.create('div', {
'class': 'esriMobileInfoViewItem'
}, mobileActionListNode);
this.popupMenuButtonMobile = html.create('span', {
'class': 'popup-menu-button'
}, mobileViewItem);
on(this.popupMenuButtonDesktop, 'click', lang.hitch(this, this._onPopupMenuButtonClick));
on(this.popupMenuButtonMobile, 'click', lang.hitch(this, this._onPopupMenuButtonClick));
},
Junshan Liu