Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Custom chooser widgets have an empty state on first load #26

@robertsoakes

Description

@robertsoakes

I've been watching the development of this package with quite some interest. It greatly improves the speed and performance of StreamField, thank you for creating it!

I've been seeing some strange behavior for custom chooser blocks. On the load of a page where values have been specified for a chooser widget, the chooser starts in a blank state . (An of a chooser where this behavior can be seen is in the Wagtail Media package. Please note that we have the same problems with three other custom choosers that we have created.)

The screenshot shows an example of how the problem manifests. The example block has a background video with both a media object and a custom icon class selected:

image

This is what the state should look like:

image

If we disable Wagtail React StreamField by removing the package from the INSTALLED_APPS, it resolves the issue. What is strange is that not all choosers are affected. Built-in choosers, such as the image chooser and page chooser, work as expected.

Do you have any idea what might cause this behavior? Is this a bug in React StreamField or are we failing to implement all of the properties required. Any insight would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions