The module attaches a JS behavior to autosubmit when a URL is filled in.
once("auto-remote-url-add", "input[data-drupal-file-url-remote]", context).forEach
In some scenarios, such as on a clean core 10.3.x and file_url 2.x setup with toolbar and big_pipe modules enabled, the autosubmit doesn't work/happen.
It looks like the JS behavior is being detached, and the change event gets wrongly removed, because the context
is missing as a 3rd argument:
once.remove("auto-remote-url-add", "input[data-drupal-file-url-remote]").forEach...
- Install clean drupal core 10.3.x (standard profile with toolbar and big_pipe) + file_url 2.x
- Create a file_url field in page nodes
- Go on a page node edit/create form
- Click "Remote file URL", fill in a valid URL, and click/tab outside the input
>> Actual behavior: nothing happens
>> Expected behavior: the URL gets submitted and added as field item
Add the missing context
to 3rd argument of once.remove
Active
2.0
User interface