We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug block.setStyle throws an error when there is a block with no style name and the theme is changed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Stack Traces
Uncaught Error: Invalid style name: null at Blockly.BlockSvg.Blockly.Block.setStyle (block.js:1013) at Blockly.WorkspaceSvg.Blockly.Workspace.updateBlockStyles_ (workspace.js:255) at Blockly.WorkspaceSvg.Blockly.Workspace.refreshTheme (workspace.js:235) at Blockly.WorkspaceSvg.refreshTheme (workspace_svg.js:2567) at Blockly.ThemeManager.setTheme (theme_manager.js:94) at Blockly.WorkspaceSvg.Blockly.Workspace.setTheme (workspace.js:226) at changeTheme (playground.html?dir=ltr&toolbox=test-blocks&side=start&renderer=geras:334) at HTMLSelectElement.onchange (playground.html?dir=ltr&toolbox=test-blocks&side=start&renderer=geras:591) Blockly.Block.setStyle @ block.js:1013 Blockly.Workspace.updateBlockStyles_ @ workspace.js:255 Blockly.Workspace.refreshTheme @ workspace.js:235 Blockly.WorkspaceSvg.refreshTheme @ workspace_svg.js:2567 Blockly.ThemeManager.setTheme @ theme_manager.js:94 Blockly.Workspace.setTheme @ workspace.js:226 changeTheme @ playground.html?dir=ltr&toolbox=test-blocks&side=start&renderer=geras:334 onchange @ playground.html?dir=ltr&toolbox=test-blocks&side=start&renderer=geras:591``` **Additional context** <!-- Add any other context about the problem here. -->
The text was updated successfully, but these errors were encountered:
I think I deal with this here https://github.com/google/blockly/pull/3334/files#diff-84b5fa00c539dcb35c0fc1e659c2a9d1R249
Sorry, something went wrong.
Fixed in #3334
No branches or pull requests
Describe the bug
block.setStyle throws an error when there is a block with no style name and the theme is changed.
To Reproduce
Observe: ALL THE ERRORS
Steps to reproduce the behavior:
Expected behavior
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Stack Traces
The text was updated successfully, but these errors were encountered: