Issue #2800πŸ’¬ AnsweredOpened May 25, 2020by meyerco0 reactions

When removing a tooltip its css is not removed

Quick answerby artf

Yeah, I think you're right, probably replacing with might fix the issue, would you like to check and create a PR? :)

Read full answer below ↓

Question

DescriptionThe bug is reproduced on the current demo Expected behavior When a tooltip is removed its css is removed What happens instead ? When a tooltip is removed its css is not removed Steps to reproduce on the demo Clear the canvas Drag a tooltip Remove the tooltipClick on Import button on top toolbar , the tooltip css is not removed . The conclusions of my research Trying to understand this bug i notified that the style-signature feature is not working properly . My supposition is that the bug occurs inside the run method of the command core:component-style-clear . On Components model th...

Answers (3)

artfβ€’ June 12, 2020

Yeah, I think you're right, probably replacing with might fix the issue, would you like to check and create a PR? :)

meyercoβ€’ June 14, 2020

@artf
Maybe this code to keep the code generic ?

// relies on the model
const len = dc.getWrapper().findType(type).length;
artfβ€’ June 18, 2020

@meyerco πŸ˜… yeah sure, sorry, it was a copy-paste from my try

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.