Does not work with Modal/Dialog Window

Created on 5 October 2023, over 1 year ago
Updated 6 October 2023, over 1 year ago

Problem/Motivation

When you want to update content with the default "edit" button everything works as expected.

However when you try to edit node in modal (dialog) window this module does not work and basicly not possible to save node.

Steps to reproduce

Just use any link or view and replace with a href like :

<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>

If that node has referenced user for example with hidden ID, it won't recognize him :

Error once Saved node:

More information related to dialog/modal can be found here : Drupal ajax-dialog-boxes β†’

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.

Nowdays everyone uses dialog windows so quite a problem now.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024