Problem/Motivation

The file /js/conflict_resolution.js contains deprecated code related to jQuery once. This is causing console log errors with D10 in

$('.conflict-resolution-dialog .conflict-resolve-conflicts').once('bind-conflict-resolve-conflicts').each(function () {
        $(this).on('click', function () {
          $('#conflict-overview-form [name="conflict-resolve-conflicts"]').mousedown();
        });
      });

Steps to reproduce

Do a field conflict with D9.2 higher or D10

Proposed resolution

See change record https://www.drupal.org/node/3158256

Comments

Onnia created an issue. See original summary.

dineshkumarbollu’s picture

Status: Active » Needs review
StatusFileSize
new658 bytes

Created patch for this issue, please review Thanks.

onnia’s picture

Status: Needs review » Reviewed & tested by the community

Nice work! Tested this with D10.1 and with 2.0.0-alpha3, no more console log error!

  • joseph.olstad committed db55c5bb on 8.x-2.x
    Issue #3415285 by dineshkumarbollu, Onnia: Remove jQuery once dependency
    

  • joseph.olstad committed 78da0f36 on 3.0.x
    Issue #3415285 by dineshkumarbollu, Onnia: Remove jQuery once dependency
    
joseph.olstad’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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