Bug: Error message in Dropdown component after dynamic update.
2

I am encountering an issue with the Dropdown component in WhatsApp Flow. When the dropdown source is dynamically updated with a new array of items and a new selected value is explicitly set after an item has already been selected, an error message appears stating: "Dropdown selected ID is not in options." This error message regarding the previous item ID should not appear, as it is irrelevant to the updated options.

Here are the steps to reproduce the bug while staying on the same screen:

1) Initialize the drop down with an array of items, e.g., [{ id: "1", title: "Option 1" }, { id: "2", title: "Option 2" }]. 2) Select an item, e.g., "Option 1". 3) Perform an action that changes the dropdown source to a new array of items, e.g., [{ id: "3", title: "Option 3" }, { id: "4", title: "Option 4" }], and explicitly set a new selected item to another value which is part of the source, e.g., "Option 3". 4) Observe the error message indicating that the previous selected item ID (1) is not in the options list, even though it is no longer selected.

I have verified that the response data from the flow returns the new array of items and the selected item correctly.

Djoumessi
ถามแล้ว ประมาณหนึ่งสัปดาห์ที่แล้ว
คำตอบที่เลือก
1

Hi Djoumessi, thanks for the bug report! We're going to investigate the issue and I'll update you in this thread

26 มิถุนายน เวลา 09:41 น.
Evgenii
1

I am also having this issue...

Select Date screen - which dynamically populates a list of time options in the next screen Select Times.screen - choose a time from the list Confirm Screen - shows selections

When clicking back x 2 from "Confirm", and then changing the date on the "select date" screen i also get the error "Dropdown selected ID is not in options." on the Select Times my dropdown, it also shows a red "true"

POSSIBLE USEFUL ADDITIONAL INFO: I have tested this using a footer navigation button and also using the on-select-action of the 2 dropdowns and the same thing occurs.

1 กรกฎาคม เวลา 05:05 น.
Stephen
Evgenii

Thanks Stephen, I'll be working on this issue this week. Hopefully it will be resolved by EOW

1 กรกฎาคม เวลา 05:23 น.
Stephen

awesome! thanks.

1 กรกฎาคม เวลา 06:23 น.
2

Quick update - the fix is ready. It should be available in the next 48 hours

3 กรกฎาคม เวลา 10:26 น.
Evgenii
Stephen

thanks Evgeni, Will it be on a new Flow Version Number?

3 กรกฎาคม เวลา 10:47 น.
Evgenii

Stephen, it's fixed across all flow versions, no version bump :)

เมื่อวานนี้ เวลา 03:39 น.
Djoumessi

Thanks Evgenii

เมื่อวานนี้ เวลา 04:03 น.
Stephen

thank you!! just tested it and it works great!!

ประมาณ 1 ชั่วโมงที่แล้ว