Skip to content

fix: fix bug that could clear the values of procedure block caller arguments#247

Merged
gonfunko merged 1 commit intomodern-blocklyfrom
procedure-args
Jul 31, 2025
Merged

fix: fix bug that could clear the values of procedure block caller arguments#247
gonfunko merged 1 commit intomodern-blocklyfrom
procedure-args

Conversation

@gonfunko
Copy link
Owner

This PR fixes #228. It requests that, when shadow blocks in procedure caller blocks are stashed before reloading the inputs on the caller block after editing the procedure definition, that the shadow DOM be generated afresh rather than using the cached value. This fixes a bug that caused fields in procedure caller blocks to temporarily lose their values after editing the procedure.

@gonfunko gonfunko merged commit 611e440 into modern-blockly Jul 31, 2025
1 check passed
@gonfunko gonfunko deleted the procedure-args branch July 31, 2025 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editing a custom block does not preserve argument values

2 participants