-
Notifications
You must be signed in to change notification settings - Fork 142
Description
Tell us about your environment
MacOS 12.0.1
- MarkBind Version: 3.1.1
What did you do? Please include the actual source code causing the issue.
- Create a dropdown component with the same slot and attribute.
- Create any other component with the same slot and attribute
(Source code causing the issue: link)
E.g.
### Dropdowns
This triggers a logger warning:
<dropdown header="Does not appear, overwritten by slot">
<span slot="header">Dropdown header slot</span>
<li><a href="#dropdown" class="dropdown-item">Lorem ipsum</a></li>
</dropdown>
### Panels
This **does not** trigger a warning:
<panel header="Does not appear, overwritten by slot">
<span slot="header">Panel header slot</span>
Lorem ipsum
</panel>
### Popover
This **does not** trigger a warning:
<popover header="Does not appear, overwritten by slot" content="Does not appear">
<span slot="header">Popover header slot</span>
<span slot="content">Popover content slot</span>
Lorem ipsum
</popover>What did you expect to happen?
Repeating an attribute as a slot either always triggers a warning, or never triggers a warning.
What actually happened? Please include the actual, raw output.
A warning is triggered for dropdowns, but not for any other component.

Dropdowns has some code that checks against having both the header slot and header attribute, and logs a warning.
I'm wondering if there is a reason why Dropdowns have this specific logger warning, but not any other component?
I tried removing the check for the duplicated slot/attribute in Dropdowns to check if this code exists because failing to delete the header attribute will cause issues, but it does not seem like the case, as Dropdowns continue to work correctly without the check.