Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When added a new empty row to product description it gives a Uncaught ReferenceError: jarallax is not defined #890

Open
andrewdaluz opened this issue Mar 4, 2025 · 2 comments
Assignees

Comments

@andrewdaluz
Copy link

Preconditions (*)

  1. Any version of page-builder installed

Steps to reproduce (*)

  1. Go to a product edit page on admin
    2.Edit the description field with Page Builder
  2. Add a new empty row
  3. Save the product
  4. After the page is reloaded, try to edit with Page Builder and remove the empty row
  5. An error is triggered on console with Uncaught ReferenceError: jarallax is not defined
  6. Save the product (after the row is removed)
  7. Then the page is reloaded and the empty row continues appearing there and it's not possible to remove it

Expected result (*)

  1. The row is removed with no errors after the product is saved

Actual result (*)

  1. The empty row continues showing up even after his removal
Copy link

m2-assistant bot commented Mar 4, 2025

Hi @andrewdaluz. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

@andrewdaluz
Copy link
Author

andrewdaluz commented Mar 4, 2025

It looks like the issue is related to the misspelling of the jarallax variable that should be _jarallax:

_proto.destroy = function destroy() {
      _previewCollection2.prototype.destroy.call(this);

      if (this.element) {
        jarallax(this.element, "destroy");
      }
    }

to

_proto.destroy = function destroy() {
      _previewCollection2.prototype.destroy.call(this);

      if (this.element) {
        _jarallax(this.element, "destroy");
      }
    }

@engcom-November engcom-November self-assigned this Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants