Skip to content

Wrong initial direct edit value on elements with null declared name #2221

@gdaniel

Description

@gdaniel

Triggering a direct edit in the explorer on elements without a declared name displays an initial value, instead of an empty string.
This breaks the implicit contract of direct edit, which shouldn't perform any edition if the user simply validates the initial value presented to them.

In the example below, triggering a direct edit on a Dependency without a declared name prompts Dependency as initial direct edit value.
Image

In the example below, triggering a direct edit on a Dependency without a declared name and with a short name prompts <short name> Dependency as initial direct edit value.
Note that validating this initial value will update the Dependency's declared name to <abc> Dependency, while its short name will remain <abc>.
This is clearly wrong, since it leads to a duplicated short name.

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions