Open
Description
What?
Requests for actions getFormData
and clearFormData
are not fired in edit mode as intended when a form exists within an accordion.
Steps to reproduce
- Setup Plone 6 with volto-form-block and volto-accordion-block
- Add accordion block to a page
- Add form block into accordion item
- Configure form to store data
- Submit data
- Check storage in edit
- See that no data is shown (despite form submission did work)
Versions
- Volto 16.23.0
- Plone 6.0.6
- volto-form-block 3.1.0
- @eeacms/volto-accordion-block 10.3.0
- collective.volto.formsupport 2.7.0
Reason
Sidebar.jsx
(which toggles the requests) refers to a prop called properties
, which does not contain the expected data when forms exists within an accordion block. In that case the relevant info is in metadata
instead of properties
.
Proposed fix
If metadata
is present in props of Edit component, pass it as properties
to Sidebar component (see #74).
Metadata
Metadata
Assignees
Labels
No labels