GrapesJS / GrapesJS/grapesjs

BUG: MJML Component `tagUpdated` will make it impossible to `hover`

Open
#6,307 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
26.2k
Forks
4.6k
Avg merge
2d 21h
Merged PRs (30d)
6

Description

### GrapesJS version

- [X] I confirm to use the latest version of GrapesJS

### What browser are you using?

130.0.6723.117

### Reproducible demo link

https://grapesjs.com/demo-mjml

### Describe the bug

**How to reproduce the bug?**

1. Select a component at random, such as the second `mj-section` on the demo page

2. Hover this component in the editor (you can see that it can be hovered)

3. Find the id of this component and execute `editor.Components.getById('iv19a').tagUpdated()`

4. Try to hover the component again and find that it cannot be hovered.

**What is the expected behavior?**

No error is reported, and you can continue hovering

**What is the current behavior?**

an error is reported and cannot be hovered
image

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.