Topic: updating an mdb-select component after a server call returns

itay pro asked 6 years ago


When updating an mdb-select component after a server call returns (and after the form is ready), the drop down is updated. However, selected item, set using FormGroup is not selected, probably because it was set when the drop down list was empty, but now when it is populated, it is not refreshed to show the required item.

Damian Gemza staff commented 6 years ago

Dear mdb2, Could you please share me your code with which you're setting the value of FormGroup?

itay pro commented 6 years ago

I set the value of the then when select values, aBKs, arrive from server they populate the list using Result: the correct entry is not selected. If I go to a different view and return, then the list is populated (already fetched from the server) and the correct item is selected

Damian Gemza staff commented 6 years ago

Dear mdb2, It's a known bug for us. Unfortunately, I can't provide you a workaround for your problem. In next weeks we have in plans to rewrite the whole mdb-select component and after refactoring its code, this problem should be gone. Best Regards, Damian

itay pro commented 6 years ago

This is a big issue as this is a common use case ! I need a solution

Damian Gemza staff commented 6 years ago

Dear mdb2, Unfortunately, I can't provide you any ready-to-use solution because this problem is complicated. As I said to you before, we have to rewrite this component, and until we rewrite it, there won't be any solution. Best Regards, Damian


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags