Closed danyill closed 7 months ago
To trigger this, use the "GOOSE-2007B4-LGOS.scd" fixture and the issue-7-showing-issue branch with only the small change to noninteractive
The cause appears to be dynamic changing of interactivity without calling layout()
Previously I had set:
However this means there are situations when deleting a used control block and then connecting a new one works once but not twice (this test:
can carry out a sequence of create, disconnect, delete and connect
).To avoid this we now have:
Which is not correct and means the "New LGOS Supervision" can be clicked on when it shouldn't be possible (i.e. when there are no control block references in the right hand side), see for the picture below:
There is something I don't understand about the reactive update or the internal state which is causing this and I will need some help to resolve it.
I thought that I should be able to rely on editCount causing a full re-render of all templates, but the this
?noninteractive
attribute appears to not be correctly calculated even though within the browser debugger I don't see that it isnoninteractive
when I can no longer click on it (after the first delete and reconnect round). However removing / reducing thenoninteractive
conditions seems to improve this and I don't know why.