You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When page content is updated via turbo, Polaris::SelectComponent is not updating it's selectedOption target's innerText. The selectedOption target's innerText is updated only on connect() or change.
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 the Polaris::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 the Polaris::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
The text was updated successfully, but these errors were encountered: