This is for version 2.23 of WAB.
I noticed that if the template is closed and you open and close the Attribute Table, then you cannot click on any existing feature to edit its attributes.
The reason is because of the conditions shown in the mapclickhandler script.
In the widget.js under the _mapClickHandler function, if the template is not open it defaults to remove the mapClick. So, I commented out the lines 18&19 to prevent that. Is any reason not to comment them out? As far I can see in my app it is working with no issues.
_mapClickHandler: function (create) {
if (create === true && this._attrInspIsCurrentlyDisplayed === false) {
this.map.setInfoWindowOnClick(false);
if (this._mapClick === undefined || this._mapClick === null) {
this._mapClick = on(this.map, "click", lang.hitch(this, this._onMapClick));
}
//this._activateTemplateToolbar();
} else if (create === true && this._attrInspIsCurrentlyDisplayed === true) {
if (this._mapClick) {
this._mapClick.remove();
this._mapClick = null;
}
this.map.setInfoWindowOnClick(true);
//this._validateAttributes();
} else {
if (this._mapClick) {
// this._mapClick.remove();
// this._mapClick = null;
}
this.map.setInfoWindowOnClick(true);
if (this.drawToolbar) {
//this._lastDrawnShape = lang.clone(this.drawToolbar._points);
this.drawToolbar.deactivate();
}
}
},