I’m migrating plugins to OC 3.1.
One of the plugins uses a formwidget which loads the intlTelInput javascript library. The assets are loaded using the loadAssets() function.
Because there’s no page refresh when loading forms and lists in version 3.1 the assets are not loaded. I need to refresh the page manually to load these files.
Is there a solution or work arround for this?
Something doesn’t add up here. If the includes are available on refresh, they should be loaded for any visit.
It is possible that even though the scripts are loaded, the events are not firing as expected since the Turbo Router uses a slightly different page lifecycle. For example, controls should be initialized with the page:loaded event:
addEventListener('page:loaded', function() {
// Page has rendered something new
});