next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Ajax callbacks on Next.Js EntityType settings form don't work.

Open Mschuddings opened this issue 9 months ago • 1 comments

Package containing the bug

next (Drupal module)

Describe the bug

I've set-up the "module" following the documenation. When trying to get "Draft mode" to work. It seemed it was unable to select a "site".

Image

The part next to red arrow didn't show due to an JS error.

This problem also occurs in "On-demand revalidation" with the "Path" option.

Expected behavior

The Site selector should be visible so that I am able to select a site.

Steps to reproduce:

  1. go to: /admin/config/services/next/entity-types/node.article/edit?destination=/admin/config/services/next/entity-types
  2. Click vertical tab "Draft-mode" select "Site selector" (for example)
  3. See that the "Next.js sites" element doesn't show up.

Additional context

/

Mschuddings avatar Mar 04 '25 12:03 Mschuddings

Bug is resolved when: 'method' => 'replace', is removed inside of "NextEntityTypeConfigForm" for both elements.

Mschuddings avatar Mar 04 '25 12:03 Mschuddings