Merge pull request #7585 from google/rc/v10.2.2

release: v10.2.2
This commit is contained in:
Beka Westberg
2023-10-09 10:42:13 -07:00
committed by GitHub
3 changed files with 6 additions and 9 deletions

View File

@@ -246,12 +246,9 @@ export class FieldColour extends Field<string> {
const block = this.getSourceBlock() as BlockSvg | null;
if (!block) throw new UnattachedFieldError();
// In general, do *not* let fields control the color of blocks. Having the
// field control the color is unexpected, and could have performance
// impacts.
// Whenever we render, the field may no longer be a full-block-field so
// we need to update the colour.
if (this.getConstants()!.FIELD_COLOUR_FULL_BLOCK) block.applyColour();
// Calling applyColour updates the UI (full-block vs non-full-block) for the
// colour field, and the colour of the field/block.
block.applyColour();
}
/**

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "blockly",
"version": "10.2.1",
"version": "10.2.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "blockly",
"version": "10.2.1",
"version": "10.2.2",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "blockly",
"version": "10.2.1",
"version": "10.2.2",
"description": "Blockly is a library for building visual programming editors.",
"keywords": [
"blockly"