When the Responsive Preview Block is used in a theme without activated Toolbar, the debounce and displace-libraries are not loaded. So the errors "Drupal.debounce is not a function" and / or "Drupal.displace is not a function" are shown in the JS-console.

Comments

sludwig created an issue. See original summary.

sludwig’s picture

Status: Needs work » Needs review
StatusFileSize
new454 bytes
chr.fritsch’s picture

StatusFileSize
new549 bytes

Thx for the patch.

We could clean that up a bit.

drupal.displace has dependencies:

dependencies:
    - core/jquery
    - core/drupal
    - core/drupal.debounce

drupal has drupalSettings and jquery.once has jquery.

Status: Needs review » Needs work

The last submitted patch, 3: 2944727-3.patch, failed testing. View results

  • chr.fritsch committed 35bd5b0 on 8.x-1.x
    Issue #2944727 by sludwig, chr.fritsch: Drupal.debounce is not a...
chr.fritsch’s picture

Status: Needs work » Fixed

Fixed

Status: Fixed » Closed (fixed)

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