Closed dnguyen1987 closed 2 years ago
I found a solution now. We just change
buttonTextAfterSelection={(selectedItem, index) => {
return selectedItem
}}
to
buttonTextAfterSelection={(selectedItem, index) => { return viewBy[index] }}
and it worked now. We can close this issue now
Thanks !
Im trying to make a dropdown that support Multilanguage so I try to change the data array value by:
var viewBy = [i18n.t("all"), i18n.t("branch"), i18n.t("corporate"), i18n.t("favorite"), i18n.t("online")]
and my SelectDropDowm:and after change language and back to this screen, I will force update for all screen by:
Every other thing are fine but the selectedItem text in SelectDropDown didn't update (the dropdown list was updated) Could you help me for this please?