Skip to content

Label text inserts extra space afterwards #8699

Description

@BryanCrotazGivEnergy

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

{
type: 'hems_desire_set_variable',tooltip: '',helpUrl: '',message0:'%1set %2',args0: [
{
type: 'field_label',name: 'thenLabel',value: '',
},
{
type: 'field_dropdown',name: 'variable',options: [
['one', '1'],
['two', '2'],
['three', '3'],
],
} ],
}

Should render "set [dropdown]"

Actually renders " set [dropdown]"

In code I'm setting the thenLabel to 'then' or '' based on the parent block. When I set it to 'then' it renders then set - note extra space.

Reproduction steps

Stack trace

Screenshots

No response

Browsers

Safari desktop

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: triageIssues awaiting triage by a Blockly team member

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions