Open sjoerdzzid opened 3 weeks ago
I think this is related to https://github.com/wagtail/wagtail/pull/11620 The fix is to update https://github.com/wagtail/wagtail-localize/blob/main/wagtail_localize/static_src/editor/components/TranslationEditor/segments.tsx#L650 (as well as https://github.com/wagtail/wagtail-localize/blob/main/wagtail_localize/static_src/editor/components/TranslationEditor/segments.tsx#L681, https://github.com/wagtail/wagtail-localize/blob/main/wagtail_localize/static_src/editor/components/TranslationEditor/segments.tsx#L712) to follow a potentially similar bit of logic as the snippet chooser fix in https://github.com/wagtail/wagtail-localize/pull/795/commits/513a34c8df97802e238ed90c01b1c76008e2d9cc
I should have a bit of time tomorrow to look into this
Python==3.11.5 Django==5.0.6 wagtail==6.1.2 wagtail-localize==1.9
The PageChooser is not working in the translated snippet. Clicking the "choose page" button will result in:
TypeError: Cannot read properties of undefined (reading 'pageChooser')
My menu consists of a
StreamField
with aPageChooserBlock
The editor interface looks like this:![image](https://github.com/wagtail/wagtail-localize/assets/21510018/c04a0eb9-933a-42ee-8325-0136198dfdee)
Seems like a small issue, but I don't know where to start fixing the .js ...