Issue #2035○ OpenOpened May 24, 2019by MetalPinguinInc0 reactions

Selecting a class in the StyleManager throws a TypeError

待解决问题

No community answers yet. Open the original discussion on GitHub to share your solution.

Question

Hello,

I am running into an issue when selecting or unselecting a class on an element in the StyleManager through the UI. This happens on both my own project and the newletter demo from the GrapesJS page.

It happens on version 0.14.61 which should be the current version.

Reproduction:

  1. Open the newletter demo from the GrapesJS homepage.
  2. Click on the big GrapesJS image and go to the StyleManager.
  3. (Un)select the checkbox next to the class.
  4. Observe an uncaught TypeError in your console.

I have included screenshots that ought to suffice, please let me know if more information is needed. It seems that GrapesJS is trying to delegate an event on the checkbox, but cannot find the element it should delegate to and keeps trying to retrieve the parentNode untill there is no parentNode anymore and the delegation target still isn't found.

Kind regards,

MetalPinguin

image

image

Answers (0)

No answers yet.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.