Autocomplete.open does not create results


Topic: Autocomplete.open does not create results

smoehrle pro premium asked 5 months ago

Hey,

I found a bug with the autocomplete component. The autocomplete.open api does not create results. If .open is called before the results were created by i.e. a focus event, nothing is shown. The example demonstrates the behaviour

Example: https://mdbootstrap.com/snippets/standard/smoehrle/2641805#html-tab-view

Best regards


Arkadiusz Idzikowski staff answered 5 months ago

This is the expected behavior. We deliberately separated the dropdown opening functionality from the search for results. However, we agree that the ability to display search results programmatically may be useful and we will add another public method, that will allow initializing search results before opening the dropdown.


smoehrle pro premium commented 5 months ago

Hey, thanks for the reply. Adding another public method is totally fine for me :)

Best regards


Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB 5
  • MDB Version: 2.0.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: Yes