- 🇨🇦Canada whikloj
I am experiencing this behaviour on a new site with Drupal 10.4.1.
Typing in the value field performs the autocomplete search, but clicking on an option puts the URL in the value field. The Definition URI field remains blank.I have only experienced this on the node edit page, and it only occurs until I add a second instance of the field (for a multi-valued field).
Then both the original and the added fields behave properly.
It appears that the included javascript (subject_autocomplete.js) is not run when the page is initially loaded. Once I click the "Add another item" button it then runs for the original and new fields.
I have tried with both the Claro and Olivero as the admin field, it is the same for both. I'm trying to figure out why it doesn't run at the initial page load.
- 🇨🇦Canada alxp Charlottetown, PE
Hi Jared,
I was also able to reproduce what you are experiencing in Drupal 10 and Drupal 11, this seems to be a new occurrence.
I have looked further into how I was doing the swapping with JavaScript and on further reading I believe the correct way to do what I want is via AJAX.
I'll push up a fix to the issue fork shortly.
Thanks for catching this and reporting.
- 🇨🇦Canada alxp Charlottetown, PE
Cut release tag 1.1.1 with a fix for this and cleaning up how exceptions are handled.
Automatically closed - issue fixed for 2 weeks with no activity.