Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

The API documentation for the change event arguments for AutoComplete describes itemData as "Returns the selected item as JSON Object from the data source" and previousItemData as "Returns the previous selected item as JSON Object from the data source" yet both properties are listed as having a type of FieldSettingsModel which doesn't match that in the slightest, and correspondingly the typescript definition of the interface ChangeEventArgs (which extends SelectEventArgs) matches the documentation in having that seemingly unrelated type declared (which are defined in drop down list and drop down base reslectively).

As far as I can tell itemData and previousItemData can either be types null (no value selected) or Object so the type definitions for those properties ought to reflect that.

Note that this feedback form suggested a past issue which seems to be related to the type declaration of itemData - it looks like at some point in the past for some reason a value of type FieldSettingsModel was maybe being passed on a failed match - see here - but the current code doesn't appear to do that, as far as I can see for itemData you always get either an Object reflecting the matched item (or the input value if no match) or null and never anything resembling the interface FieldSettingsModel.