Skip to content

Quick fix to insert all missing attributes for user tag in Qute file adds a nested-content attribute #841

@datho7561

Description

@datho7561

Let's say you have a user tag: (this is one from quarkus-renarde-todo)

formElement.html:

<label class="form-label" for="{name}">{label}</label>
<div class="mb-3 {class??}">
    {nested-content}
{#ifError name}
    <span class="invalid-feedback">​{#error name/}</span>​
{/ifError}
</div>

and you reference it from another Qute template like this:

{#formElement}
  <h3>Hello!</h3>
{/}

Then there is a quick fix that appears on #formElement to add all the missing attributes to the user tag. However, this quick fix adds an attribute called nested-content. However, nested-content is a special key that gets replace with the content of the user tag (in this case <h3>Hello!</h3>). It doesn't makes sense to add it as an attribute with the quick fix.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions