wagtailwagtail-admin

MultipleChooserPanel: this.chooserWidgetFactory.openModal is not a function


I upgraded from wagtail 4 to wagtail 5.0.2. When I try to open a MultipleChooserPanel I get the following js error in the browser console:

Uncaught TypeError: this.chooserWidgetFactory.openModal is not a function
    MultipleChooserPanel http://10.10.10.57:10000/api/static/wagtailadmin/js/page-editor.js?v=ce9bf046:1
page-editor.js:1:4815
    MultipleChooserPanel http://10.10.10.57:10000/api/static/wagtailadmin/js/page-editor.js?v=ce9bf046:1

This works however on a fresh install of wagtail. To recreate the project from scratch is not an option because the current project is huge. Any idea where the error could originate from?

I already tried clearing the browser cache, use a different browser and I ran this command: ./manage.py collectstatic --noinput --clear


Solution

  • Sadly I have to provide y'all with an unsatisfying answer. The issue resolved without any code changes. Maybe opening another modal helps (in my case the ImageChooser)