<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Dropdown Calcite Component not displaying in React in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropdown-calcite-component-not-displaying-in-react/m-p/1312201#M81793</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I"m having trouble displaying a dropdown calcite component using the React.js framework. &lt;A href="https://developers.arcgis.com/calcite-design-system/components/dropdown/" target="_self"&gt;In the documentation which i've linked here&lt;/A&gt;, the code should look like this...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ReactDOM.render(
                    &amp;lt;&amp;gt;
                    &amp;lt;CalciteDropdown&amp;gt;
                        &amp;lt;CalciteButton&amp;gt;Buttons&amp;lt;/CalciteButton&amp;gt;
                        &amp;lt;CalciteDropdownGroup&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 1&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 2&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 3&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 4&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 5&amp;lt;/CalciteDropdownItem&amp;gt;
                        &amp;lt;/CalciteDropdownGroup&amp;gt;
                    &amp;lt;/CalciteDropdown&amp;gt;
                    &amp;lt;/&amp;gt;
                , buttonContainer);&lt;/LI-CODE&gt;&lt;P&gt;however this causes nothing to show up in the parent element called buttonContainer (which is just a div element so i've excluded it from the sample)&lt;/P&gt;&lt;P&gt;What's weird though is that if I remove the Calcite Dropdown parent container and just have a free-floating Calcite Dropdown Group container then it appears on screen. Put another way, the code below makes it show up as expected...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ReactDOM.render(
                    &amp;lt;&amp;gt;
                        &amp;lt;CalciteDropdownGroup&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 1&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 2&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 3&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 4&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 5&amp;lt;/CalciteDropdownItem&amp;gt;
                        &amp;lt;/CalciteDropdownGroup&amp;gt;
                    &amp;lt;/&amp;gt;, buttonContainer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Anyone got any tips for what i'm doing wrong? Thanks y'all!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 18:26:48 GMT</pubDate>
    <dc:creator>craragon77</dc:creator>
    <dc:date>2023-07-26T18:26:48Z</dc:date>
    <item>
      <title>Dropdown Calcite Component not displaying in React</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropdown-calcite-component-not-displaying-in-react/m-p/1312201#M81793</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I"m having trouble displaying a dropdown calcite component using the React.js framework. &lt;A href="https://developers.arcgis.com/calcite-design-system/components/dropdown/" target="_self"&gt;In the documentation which i've linked here&lt;/A&gt;, the code should look like this...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ReactDOM.render(
                    &amp;lt;&amp;gt;
                    &amp;lt;CalciteDropdown&amp;gt;
                        &amp;lt;CalciteButton&amp;gt;Buttons&amp;lt;/CalciteButton&amp;gt;
                        &amp;lt;CalciteDropdownGroup&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 1&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 2&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 3&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 4&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 5&amp;lt;/CalciteDropdownItem&amp;gt;
                        &amp;lt;/CalciteDropdownGroup&amp;gt;
                    &amp;lt;/CalciteDropdown&amp;gt;
                    &amp;lt;/&amp;gt;
                , buttonContainer);&lt;/LI-CODE&gt;&lt;P&gt;however this causes nothing to show up in the parent element called buttonContainer (which is just a div element so i've excluded it from the sample)&lt;/P&gt;&lt;P&gt;What's weird though is that if I remove the Calcite Dropdown parent container and just have a free-floating Calcite Dropdown Group container then it appears on screen. Put another way, the code below makes it show up as expected...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;ReactDOM.render(
                    &amp;lt;&amp;gt;
                        &amp;lt;CalciteDropdownGroup&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 1&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 2&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 3&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 4&amp;lt;/CalciteDropdownItem&amp;gt;
                            &amp;lt;CalciteDropdownItem&amp;gt;Option 5&amp;lt;/CalciteDropdownItem&amp;gt;
                        &amp;lt;/CalciteDropdownGroup&amp;gt;
                    &amp;lt;/&amp;gt;, buttonContainer);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Anyone got any tips for what i'm doing wrong? Thanks y'all!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 18:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dropdown-calcite-component-not-displaying-in-react/m-p/1312201#M81793</guid>
      <dc:creator>craragon77</dc:creator>
      <dc:date>2023-07-26T18:26:48Z</dc:date>
    </item>
  </channel>
</rss>

