Open alhafoudh opened 1 month ago
I found a hot-fix for this. I add ... , input_options: { data: { action: 'turbo:load@window->polaris-select#update' } }
to the Polaris::SelectComponent
.
Should this behavior be in this library or we should leave it to the developer to handle this case?
When page content is updated via
turbo
,Polaris::SelectComponent
is not updating it'sselectedOption
target'sinnerText
. TheselectedOption
target'sinnerText
is updated only onconnect()
orchange
.Here: https://github.com/baoagency/polaris_view_components/blob/main/app/assets/javascripts/polaris_view_components/select_controller.js#L3