I'm creating a custom application using WAB 2.1. I'm using the standard Search widget (version 2.1), and have added some search sources using a polygon Feature Layer in my webmap. When I attempt to search on these items I am getting the following error:
TypeError: Unable to draw graphic (null): features.geometry.getCenter is not a function(…)
Anyone else have this issue? The search still works, but it zooms very close on the feature (rather than zooming to it's extent) and the progress circle in the lower right of the app spins infinitely.
BTW, I added another search source using a Point feature layer; this works and does not have the same problem as with the polygon.