<?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: SelectV2 in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249426#M988</link>
    <description>&lt;P&gt;I am using -&amp;nbsp;&lt;SPAN&gt;0.111.7 - so I will check with the latter version and let you know! Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 15:08:23 GMT</pubDate>
    <dc:creator>veranika_k</dc:creator>
    <dc:date>2024-06-28T15:08:23Z</dc:date>
    <item>
      <title>SelectV2</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249390#M986</link>
      <description>&lt;P&gt;Hi! Is it possible to combine clearable props with the setting state? It seems that pressing "clear selection" does not affect the state.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developer.dynatrace.com/reference/design-system/preview/forms/SelectV2/#control-the-state" target="_blank"&gt;https://developer.dynatrace.com/reference/design-system/preview/forms/SelectV2/#control-the-state&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 10:40:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249390#M986</guid>
      <dc:creator>veranika_k</dc:creator>
      <dc:date>2024-06-28T10:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: SelectV2</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249404#M987</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67240"&gt;@veranika_k&lt;/a&gt;, what version of Strato are you using? I just tried the latest (&lt;SPAN&gt;0.114.3) and it works as expected (sets the value to null when the selection is cleared). Here's the code I used:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;export const App = () =&amp;gt; {
  const [singleValue, setSingleValue] = useState&amp;lt;string | null&amp;gt;(null);

  useEffect(() =&amp;gt; {
    console.log(singleValue); // logs the selected option or null
  }, [singleValue]);

  return (
    &amp;lt;FormField&amp;gt;
      &amp;lt;Label&amp;gt;Select a country&amp;lt;/Label&amp;gt;
      &amp;lt;SelectV2
        clearable
        name="country-selectV2"
        value={singleValue}
        onChange={setSingleValue}
      &amp;gt;
        &amp;lt;SelectV2.Content&amp;gt;
          &amp;lt;SelectV2.Option value="austria"&amp;gt;Austria&amp;lt;/SelectV2.Option&amp;gt;
          &amp;lt;SelectV2.Option value="germany"&amp;gt;Germany&amp;lt;/SelectV2.Option&amp;gt;
          &amp;lt;SelectV2.Option value="italy"&amp;gt;Italy&amp;lt;/SelectV2.Option&amp;gt;
          &amp;lt;SelectV2.Option value="spain"&amp;gt;Spain&amp;lt;/SelectV2.Option&amp;gt;
        &amp;lt;/SelectV2.Content&amp;gt;
      &amp;lt;/SelectV2&amp;gt;
    &amp;lt;/FormField&amp;gt;
  );
};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 13:04:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249404#M987</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2024-06-28T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: SelectV2</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249426#M988</link>
      <description>&lt;P&gt;I am using -&amp;nbsp;&lt;SPAN&gt;0.111.7 - so I will check with the latter version and let you know! Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:08:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249426#M988</guid>
      <dc:creator>veranika_k</dc:creator>
      <dc:date>2024-06-28T15:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: SelectV2</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249618#M989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67240"&gt;@veranika_k&lt;/a&gt;&amp;nbsp;- I hope the solution above solution worked for you, if so, please 'accept as solution', to help us close this community question.&lt;/P&gt;
&lt;P&gt;Thanks, Penny&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 06:31:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/SelectV2/m-p/249618#M989</guid>
      <dc:creator>PennyScully</dc:creator>
      <dc:date>2024-07-02T06:31:56Z</dc:date>
    </item>
  </channel>
</rss>

