Drupal Version

10.1.5

Domain module version

2.0.0-beta1

Problem/Motivation

domain.libraries.yml and domain_source.libraries.yml have a core/jquery dependency.

Proposed resolution

Remove the jQuery dependencies and rewrite needed JS with it with Vanilla JS.

Issue fork domain-3397501

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

handkerchief created an issue. See original summary.

mably’s picture

Status: Active » Postponed

Looks like we are depending on some Drupal form jQuery code in the domain.js file ($.fn.drupalSetSummary from web/core/misc/form.js).

Could be more easily removed in domain_source.js file though.

mably’s picture

Version: 2.0.x-dev » 3.x-dev
Status: Postponed » Needs review

It's not possible to remove the dependency completely.

But I have removed as much as possible.

  • mably committed 30ffd744 on 3.x
    Issue #3397501 by handkerchief, mably: Remove dependency on jQuery
    
mably’s picture

Status: Needs review » Fixed

We have removed jQuery dependent code as much as possible.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.