fix(central-ui): Flow Debugger — remount ParameterValueForm per script so stale form state cannot block Run
Claude-Session: https://claude.ai/code/session_01NcMG6xXdsJbmD2wYAgkK29
This commit is contained in:
@@ -235,7 +235,12 @@
|
||||
else
|
||||
{
|
||||
<div data-test="flow-script-params">
|
||||
<ParameterValueForm ParameterDefinitions="@script.ParameterDefinitions"
|
||||
@* Keyed on the script so a change of script REMOUNTS the form: its raw
|
||||
text and parse errors are per-instance state that must not survive
|
||||
(and two scripts may even declare byte-identical definitions, which
|
||||
would otherwise skip the reparse and its ValidChanged entirely). *@
|
||||
<ParameterValueForm @key="@script.CanonicalName"
|
||||
ParameterDefinitions="@script.ParameterDefinitions"
|
||||
Values="_scriptParams"
|
||||
ValuesChanged="@(v => _scriptParams = v)"
|
||||
ValidChanged="@(ok => _scriptParamsValid = ok)" />
|
||||
|
||||
Reference in New Issue
Block a user