Closed findelallc closed 4 years ago
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
There is a problem in suggestion list rendering, I am using handleInputChange method to fetch autcomplete data from API and setState suggestions array according to documented format like suggestions: [{ id: "", text: "" }]
I have no idea, what's wrong in showing. While consoling, post setState method, I am able to see the prepared array of objects but it's not displaying as a suggestion list. My code is like this -
response..data.map(function (key,i) { _this.state.suggestions.push({id : key.ID, text: key.NAME}); }); _this.setState(_this.state.suggestions); console.log(_this.state.suggestions);
response.data is the array of objects, getting from the service. Hope this helps to resole my issue.