<?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: Date Picker in update feature attributes sample in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-picker-in-update-feature-attributes-sample/m-p/1288699#M81145</link>
    <description>&lt;P&gt;This appears to be a bug in the esri/chunks/calcite-input-date-picker module, and I don't think there's much you can do about it.&amp;nbsp; You'll notice when you click on the arrow for the next month, the calender does flash briefly to the next month, but then gets reset.&amp;nbsp; Whenever certain elements on the form are clicked, the values on the form are reset from a copy of the values in memory.&amp;nbsp; Therefore, the value does get set to the next month when you click the arrow, but it immediately gets reset due to conflicting event handlers.&lt;/P&gt;&lt;P&gt;Within the aforementioned module, this handler executes when you click one of the previous or next month arrows:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.handleArrowClick = (a,b)=&amp;gt;{
	a.preventDefault();
	this.calciteInternalDatePickerSelect.emit(b)
}&lt;/LI-CODE&gt;&lt;P&gt;If it were changed to this, it would work properly (note addition at line 3):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.handleArrowClick = (a,b)=&amp;gt;{
	a.preventDefault();
	a.cancelBubble = true; //added line
	this.calciteInternalDatePickerSelect.emit(b)
}&lt;/LI-CODE&gt;&lt;P&gt;If you're hosting the API locally, you can apply this change.&amp;nbsp; If not, perhaps it will get fixed in a future release.&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 18:20:16 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-05-12T18:20:16Z</dc:date>
    <item>
      <title>Date Picker in update feature attributes sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-picker-in-update-feature-attributes-sample/m-p/1288550#M81137</link>
      <description>&lt;P&gt;I was lookin at the sample below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=editing-groupedfeatureform" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/editing-groupedfeatureform/Sandbox | Sample Code | ArcGIS Maps SDK for JavaScript 4.26 | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Date of inspection field is not responding when clicking the month navigation. in the sample and I can change the date in the same month. I do not se any min or max vakues set.&lt;/P&gt;&lt;P&gt;Is there something I missed?&lt;/P&gt;&lt;P&gt;Markos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 12:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-picker-in-update-feature-attributes-sample/m-p/1288550#M81137</guid>
      <dc:creator>MarkosK</dc:creator>
      <dc:date>2023-05-12T12:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date Picker in update feature attributes sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-picker-in-update-feature-attributes-sample/m-p/1288575#M81138</link>
      <description>&lt;P&gt;There doesn't appear to be an "inpt_date" field in the underlying data. I don't know if this is what's affecting the date picker. You can manually put in another month by typing it in.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 13:53:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-picker-in-update-feature-attributes-sample/m-p/1288575#M81138</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-05-12T13:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date Picker in update feature attributes sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-picker-in-update-feature-attributes-sample/m-p/1288699#M81145</link>
      <description>&lt;P&gt;This appears to be a bug in the esri/chunks/calcite-input-date-picker module, and I don't think there's much you can do about it.&amp;nbsp; You'll notice when you click on the arrow for the next month, the calender does flash briefly to the next month, but then gets reset.&amp;nbsp; Whenever certain elements on the form are clicked, the values on the form are reset from a copy of the values in memory.&amp;nbsp; Therefore, the value does get set to the next month when you click the arrow, but it immediately gets reset due to conflicting event handlers.&lt;/P&gt;&lt;P&gt;Within the aforementioned module, this handler executes when you click one of the previous or next month arrows:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.handleArrowClick = (a,b)=&amp;gt;{
	a.preventDefault();
	this.calciteInternalDatePickerSelect.emit(b)
}&lt;/LI-CODE&gt;&lt;P&gt;If it were changed to this, it would work properly (note addition at line 3):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;this.handleArrowClick = (a,b)=&amp;gt;{
	a.preventDefault();
	a.cancelBubble = true; //added line
	this.calciteInternalDatePickerSelect.emit(b)
}&lt;/LI-CODE&gt;&lt;P&gt;If you're hosting the API locally, you can apply this change.&amp;nbsp; If not, perhaps it will get fixed in a future release.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 18:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/date-picker-in-update-feature-attributes-sample/m-p/1288699#M81145</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-05-12T18:20:16Z</dc:date>
    </item>
  </channel>
</rss>

