bug(calcite-button): renders incorrectly if an HTML comment is "slotted in" #10076
Closed
2 of 6 tasks
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
calcite-components
Issues specific to the @esri/calcite-components package.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Actual Behavior
<calcite-button>
thinks that it has slotted in content if you provide an HTML comment as a child to itcalcite-design-system/packages/calcite-components/src/components/button/button.tsx
Lines 351 to 357 in 5478c2f
Expected Behavior
<calcite-button>
should not consider comment to be a slotted in content.Reproduction Sample
https://codepen.io/maxpatiiuk/pen/mdZpWJb?editors=1000
Reproduction Steps
Reproduction Version
2.11.1
Relevant Info
No response
Regression?
No response
Priority impact
impact - p2 - want for an upcoming milestone
Impact
When an element is rendered using
lit-html
templates, comments may be inserted by lit-html - we don't have much control over that. Those comments are causing calcite to not render correctly.Our exact code in question (from the
arcgis-home
component in@arcgis/map-components
):Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: