Does not work with Modal/Dialog Window
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3391861. -->
Reported by: [coaston](https://www.drupal.org/user/3606845)
Related to !2
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When you want to update content with the default "edit" button everything works as expected.</p>
<p>However when you try to edit node in modal (dialog) window this module does not work and basicly not possible to save node.</p>
<h3 id="Steps">Steps to reproduce</h3>
<p>Just use any link or view and replace with a href like :</p>
<pre><a class="use-ajax" href="/node/2/edit" data-dialog-options="{&quot;width&quot;:800}" data-dialog-type="modal">First node displayed in modal dialog.</a></pre><p>If that node has referenced user for example with hidden ID, it won't recognize him :</p>
<p><img src="https://www.drupal.org/files/issues/2023-10-05/trimmer_dialog.png" alt="Dialog"></p>
<p>Error once Saved node:</p>
<p><img src="https://www.drupal.org/files/issues/2023-10-05/trimmer_dialog2.png" alt="Unable to save"></p>
<p>More information related to dialog/modal can be found here :<a href="https://www.drupal.org/docs/drupal-apis/ajax-api/ajax-dialog-boxes" title="Drupal ajax-dialog-boxes">Drupal ajax-dialog-boxes</a></p>
<p>Of course if I switch back to default autocomplete widget - no issue. And as I already mentioned - the same case works fine if you use standard aporach without dialog window.</p>
<p>Nowdays everyone uses dialog windows so quite a problem now.</p>
issue