Problem/Motivation

When adding microcontent using entity browser, Uncaught TypeError: $(...).once is not a function errors are thrown.

Steps to reproduce

Create some microcontent entities
Create an entity browser for selecting microcontent
Create a Reference field which can select Microcontent entities on a bundle for an entity type
Configure form display for the bundle to use the microcontent entity browser
Create content and try to select microcontent using entity browser

Proposed resolution

Add core/once and core/jquery.once.bc to dependencies.

Remaining tasks

Patch or merge request to follow.

User interface changes

None

API changes

None

Data model changes

None

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

hitfactory created an issue. See original summary.

keshavv’s picture

Status: Active » Reviewed & tested by the community

Confirmed that there is an issue and given MR works well.

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

Left a comment on the MR

hitfactory’s picture

Can you provide a link to the comment on the MR as I can't seem to find it?

larowlan’s picture

Ah that's my fault I didn't finish the review, have done now

sourabhjain made their first commit to this issue’s fork.

sourabhjain’s picture

Status: Needs work » Needs review

  • larowlan committed 07b56d93 on 8.x-1.x authored by hitfactory
    Issue #3381107 by hitfactory, sourabhjain, larowlan: Uncaught TypeError...
larowlan’s picture

Status: Needs review » Fixed

Thanks

larowlan’s picture

Tagging 1.7

Status: Fixed » Closed (fixed)

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