When affecting one api dropdown by another, meaning that I select a project, then I want to choose a task but only from the pool of tasks for that given project, I can still see the tasks of the preset project.
create 2 api dropdowns
one has a default selected value
update query url of second dropdown by results of the first dropdowns selection
open second dropdown
Expected Result
There should be an empty menu with the message no results
Actual Result
The API returns an empty array and the dropdown menu doesn't regenerate with the no results message but stays the same.
Version
2.4.2
Hacky solution
I fixed it by overwriting the onSuccess behaviour of the dropdown, in apiSettings.
Steps
When affecting one api dropdown by another, meaning that I select a project, then I want to choose a task but only from the pool of tasks for that given project, I can still see the tasks of the preset project.
Expected Result
There should be an empty menu with the message
no results
Actual Result
The API returns an empty array and the dropdown menu doesn't regenerate with the
no results
message but stays the same.Version
2.4.2
Hacky solution
I fixed it by overwriting the
onSuccess
behaviour of the dropdown, inapiSettings
.Currently implemented
Possible solution
Sorry for the bad formatting on the code, copied it from IDE here, other than that it should work as expected if modified.