I don't know what a proper fix would be: add EditBlock.onChangeFocus = false or true, or I guess a function, though I do not know what this function would have to do. Or maybe make onChangeFocus not required.
In my case, due to this error I actually thought the block was broken, maybe not yet compatible with Volto 17, or with volto-light-theme, because it was not working.
In fact it worked fine. I simply did not yet understand the UI: I expected that I could add fields in the main part of the edit page, but you can only do this in the "side column" (I don't know if that is the right term).
In a test project with
volto-form-block
andvolto-sub-blocks
I see this error on the javascript console when adding a form block to a page:(Yes, it is an error even though it starts with "Warning"...)
I guess it is about this
EditBlock
class in the current repo. AndonChangeFocus
is marked as required involto-subblocks
.I don't know what a proper fix would be: add
EditBlock.onChangeFocus = false
ortrue
, or I guess a function, though I do not know what this function would have to do. Or maybe makeonChangeFocus
not required.In my case, due to this error I actually thought the block was broken, maybe not yet compatible with Volto 17, or with
volto-light-theme
, because it was not working. In fact it worked fine. I simply did not yet understand the UI: I expected that I could add fields in the main part of the edit page, but you can only do this in the "side column" (I don't know if that is the right term).