Repeater does not work properly when connected to dataset !SOLVED!

When I switch the language (multilingual is active on site) on a page with a repeater connected to a dataset (collection site) the repeater shows the defaults values instead of the data connected to it. I need to refresh the page to get the connected element shown.
My site page that does not work is https://www.aziendarisogoio.com/tariffe

This appears to be a bug in the Repeater - it loses the connection to the data. I’ve reported this issue to the QA team.

Thank you for pointing this out.

1 Like

Hey
A tip from my work:
Delete the default items in your repeater except the first one. Make the whole repeater Hide on load and then put code in your page onReady section to wait for the dataset.

$w("#myDataset").onReady( () => {
  $w("#repeater1").show();
} );

This way it will at least prevent the repeater from showing with default values and make it a bit more stable.

I think that the repeaters should never be displayed on the site if it have the default values and at the same is connected to a dataset.

2 Likes

Thanks Andreas it is a good tips ! For the time being I have set a default image and default text saying to refresh it is craft solution and it should be only a temporary solution. It is indeed a bug on the repeater : it should not have to react like this when switching language…

Thanks and let me updated when it is solved

@pgoio The bug has just been fixed. Try it again and let us know how it goes. :beers:

@yisrael-wix Nope :frowning: just tested and nothing changed

@pgoio I’ll check this out with QA. Thanks for getting back to me.

The fix hasn’t been released yet. It’s still in QA and should be released soon.

@yisrael-wix it seems to work now thank you very much !