Submit "Occurrences" modal form scrolls page to "Save" button of a node
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3251849. -->
Reported by: [ruslan piskarov](https://www.drupal.org/user/424444)
Related to !2
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When a user clicks the "Show/exclude occurrences" button, the modal "Occurrences" dialog id opening. And when a user submits a modal dialog, the page is jumping to the "Save" button of the node.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Install Drupal with Standart profile.<br>
Enable "date_recur_modular" module.<br>
Add a field with the Siera widget (I didn't test others, but maybe the same for the rest).</p>
<p>Screenshots:<br>
Open a modal <a href="https://monosnap.com/file/dXL9QC4rZMjl4pI280i7ooHm2gXplt">https://monosnap.com/file/dXL9QC4rZMjl4pI280i7ooHm2gXplt</a><br>
Submit the modal <a href="https://monosnap.com/file/KgW3P0fXD1986J09uQWpprGkee2a9x">https://monosnap.com/file/KgW3P0fXD1986J09uQWpprGkee2a9x</a><br>
The form jumped <a href="https://monosnap.com/file/Xk5Z0DsaRHZD9EmTUkfbqORST9s4DC">https://monosnap.com/file/Xk5Z0DsaRHZD9EmTUkfbqORST9s4DC</a></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add <code>'disable-refocus' => TRUE</code> to DateRecurModularSierraModalOccurrencesForm form.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>No</p>
<h3 id="summary-api-changes">API changes</h3>
<p>No</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>No</p>
issue