<?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 Re: calcite components dropdown menu item selection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1171575#M77244</link>
    <description>&lt;P&gt;For anyone coming across this and seeing&amp;nbsp;&lt;SPAN&gt;'selectedItems' forever an empty array, I found this to be the case. The solution I found was to put my&amp;nbsp;calcite-dropdown-items in a&amp;nbsp;calcite-dropdown-group. Nothing else needed beyond that. This was the only way I found to know when/which item is selected in a calcite dropdown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11373"&gt;@JohnGrayson&lt;/a&gt;&amp;nbsp;howdy, been awhile!)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 17:42:46 GMT</pubDate>
    <dc:creator>coryeicher</dc:creator>
    <dc:date>2022-05-06T17:42:46Z</dc:date>
    <item>
      <title>calcite components dropdown menu item selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1085762#M74135</link>
      <description>&lt;P&gt;I'm trying to implement the new calcite components dropdown menu and can't get it to select any of the value options for the field-select.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;A href="https://codepen.io/jjchi11/pen/WNjgOKE" target="_blank" rel="noopener"&gt;https://codepen.io/jjchi11/pen/WNjgOKE&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Aug 2021 15:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1085762#M74135</guid>
      <dc:creator>JayHill</dc:creator>
      <dc:date>2021-08-04T15:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: calcite components dropdown menu item selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1085934#M74148</link>
      <description>&lt;P&gt;According to the &lt;A href="https://github.com/Esri/calcite-components/tree/v1.0.0-beta.52/src/components/calcite-dropdown" target="_self"&gt;doc&lt;/A&gt;, we need to listen to the '&lt;SPAN&gt;calciteDropdownSelect&lt;/SPAN&gt;' event on the calcite-dropdown element.&amp;nbsp; In your code you retrieve the selected item information later on, so you can use the 'selectedItems' property to discover this information.&amp;nbsp; Here's a slightly updated version of your CodePen that shows these concepts:&amp;nbsp;&lt;A href="https://codepen.io/john-grayson/pen/JjNappM" target="_blank"&gt;https://codepen.io/john-grayson/pen/JjNappM&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 20:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1085934#M74148</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-08-04T20:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: calcite components dropdown menu item selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1085950#M74153</link>
      <description>&lt;P&gt;Thanks John! It still wasn't rendering but instead of "selected" for the default choice it is now "active".&amp;nbsp; All works then.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 21:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1085950#M74153</guid>
      <dc:creator>JayHill</dc:creator>
      <dc:date>2021-08-04T21:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: calcite components dropdown menu item selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1171575#M77244</link>
      <description>&lt;P&gt;For anyone coming across this and seeing&amp;nbsp;&lt;SPAN&gt;'selectedItems' forever an empty array, I found this to be the case. The solution I found was to put my&amp;nbsp;calcite-dropdown-items in a&amp;nbsp;calcite-dropdown-group. Nothing else needed beyond that. This was the only way I found to know when/which item is selected in a calcite dropdown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11373"&gt;@JohnGrayson&lt;/a&gt;&amp;nbsp;howdy, been awhile!)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 17:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calcite-components-dropdown-menu-item-selection/m-p/1171575#M77244</guid>
      <dc:creator>coryeicher</dc:creator>
      <dc:date>2022-05-06T17:42:46Z</dc:date>
    </item>
  </channel>
</rss>

