We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9703bc6 commit 52ac752Copy full SHA for 52ac752
packages/scratch-gui/src/containers/blocks.jsx
@@ -238,6 +238,16 @@ class Blocks extends React.Component {
238
this.ScratchBlocks.hideChaff();
239
}
240
241
+ // Only rerender the toolbox when the blocks are visible and the xml is
242
+ // different from the previously rendered toolbox xml.
243
+ // Do not check against prevProps.toolboxXML because that may not have been rendered.
244
+ if (
245
+ this.props.isVisible &&
246
+ this.props.toolboxXML !== this._renderedToolboxXML
247
+ ) {
248
+ this.requestToolboxUpdate();
249
+ }
250
+
251
if (this.props.isVisible === prevProps.isVisible) {
252
if (this.props.stageSize !== prevProps.stageSize) {
253
// force workspace to redraw for the new stage size
0 commit comments