mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
fix: block initialization (#7777)
* fix: reorganize initialization * chore: fix failing tests * fix: tests * chore: format * chore: remove console trace
This commit is contained in:
@@ -921,10 +921,9 @@ const PROCEDURE_CALL_COMMON = {
|
||||
type: 'field_label',
|
||||
text: this.arguments_[i],
|
||||
}) as FieldLabel;
|
||||
const input = this.appendValueInput('ARG' + i)
|
||||
this.appendValueInput('ARG' + i)
|
||||
.setAlign(Align.RIGHT)
|
||||
.appendField(newField, 'ARGNAME' + i);
|
||||
input.init();
|
||||
}
|
||||
}
|
||||
// Remove deleted inputs.
|
||||
@@ -937,7 +936,6 @@ const PROCEDURE_CALL_COMMON = {
|
||||
if (this.arguments_.length) {
|
||||
if (!this.getField('WITH')) {
|
||||
topRow.appendField(Msg['PROCEDURES_CALL_BEFORE_PARAMS'], 'WITH');
|
||||
topRow.init();
|
||||
}
|
||||
} else {
|
||||
if (this.getField('WITH')) {
|
||||
|
||||
Reference in New Issue
Block a user