1
Dropdown auto selects first value when placeholder bound to data variable.
planned
B
Brenton Richards
HI, this is a recent occurrence that was not happening previously with the dropdown component. When the placeholder text is bound to a data variable, the dropdown defaults to the first value in the list. this does not occur when using static text.
Log In
Activity
Newest
Oldest
Kristian Gerkman
planned
T
Timo Kapanen
Hi Brenton Richards and thanks for your report. I made a simple test trying to reproduce this issue but could not see the behaviour you described. Could you provide the appID of your app to help help us study this further. The appID can be found from URL when the app is open in Composer. It would be also helpful to know in which page of the app the particular dropdown is. Best Regards, Timo Kapanen
T
Timo Kapanen
under review
B
Brenton Richards
Timo Kapanen: Thanks for getting on this so quickly.
App ID is 321140. Please note that the issue only seems to be present on mobile. I'm currently using the SAP preview app on an android device. The issue first occurd on January 10th. All dropdowns made prior to this seem uneffected, But new ones have this issue.
Thank you again.
Kristian Gerkman
Brenton Richards: Hey, it seems like there is a bug that the dropdown selects the first item from the dropdown if the placeholder text is
undefined
. You can add a simple workaround for this by making the placeholder the a formula and adding DEFAULT(dataVars.variable.value, "Loading...")
.This way if loading of the data variable takes some time, the placeholder would never be
undefined
. Thanks,
Kristian