Open alhafoudh opened 4 months 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?
I found a hot-fix for this. I add
... , input_options: { data: { action: 'turbo:load@window->polaris-select#update' } }
to thePolaris::SelectComponent
.Should this behavior be in this library or we should leave it to the developer to handle this case?
I also face the similar issue. Not sure why it is not taken care of yet. @alhafoudh Can you please provide more details about your hot-fix how you resolved this? Thanks
I found a hot-fix for this. I add
... , input_options: { data: { action: 'turbo:load@window->polaris-select#update' } }
to thePolaris::SelectComponent
. Should this behavior be in this library or we should leave it to the developer to handle this case?I also face the similar issue. Not sure why it is not taken care of yet. @alhafoudh Can you please provide more details about your hot-fix how you resolved this? Thanks
I was missing the npm package integration, after I install the related package the issue is resolved.
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