AnsweredAssumed Answered

Web AppBuilder Edit Widget has blank Attribute edit window on repeat click.

Question asked by David.Wendelken on May 1, 2017

I ran across this behavior in the Edit widget:


User clicks on a point. 
Attribute Inspector edit window displays fields names and values to edit.
User closes attribute window.
User clicks on same point (without clicking anywhere else first)
Attribute Inspector edit window displays a blank canvas, no field names and no values.


I believe I've found the line that causes this problem in widget.js:


_updateSelectedFeature: function(selectedFeature) {
  if (selectedFeature) {

    selectedFeature.getLayer().applyEdits(null, [selectedFeature]);

    // Commenting out the next line makes the problem go away.


I haven't found any new problems caused by this change, but I won't swear there aren't any.   Post back if you try this and find an issue.

FYI: If the user clicks somewhere else on the map, then clicks on the original point again, it will work without this code change, in case you just need a workaround...