Topic: Autocomplete.open does not create results

smoehrle free asked 4 years 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 4 years 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 free commented 4 years ago

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

Best regards


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 2.0.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: Yes