BUG: Angular Component as Custom Color Picker is only created once
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Version 104.0.5112.101
Reproducible demo link
https://codesandbox.io/s/awesome-dewdney-bwo5t1
Describe the bug
How to reproduce the bug?
- Add the Text block to the content of the editor
- Open the StyleManager and expand the Decorations Sector
- Notice the red placeholder text where normally the standard color picker is located (this text is a basic angular component)
- Next, scroll down to the "Background" tab and add a new background
- Notice again the red placeholder text
- Click on the main content of the grapes content, so the styleManager switches to the settings of the body
- Now click on the text block again and scroll down to the background tab and expand it
- Notice how the placeholder text for the color attribute isn't there
- If you look in the console of the browser you see that the angular component got destroyed when selecting another element, but never got created again
What is the expected behavior? The Angular Component should be created/rendered again when opening the Background Tab.
What is the current behavior? The Angular Component is destroyed when the Background Tab closes and we lose the ability to change the color until the whole grapes editor is opened again.
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #6685
BUG: Custom component styles are not applied after deletion and re-addition
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v143.0.7499.193 Reproducible demo l...
Issue #4546
BUG: Component disappears when we select all the inner text and use backspace. Link component disappears even when we try to update the text.
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Version 104.0.5112.101 (Official Build) (arm...
Issue #6485
BUG: showSelectionPalette doesnt work with custom color picker
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://code...
Issue #4601
BUG: update() of custom types added to StyleManager is no more triggered when switching between some targets.
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chromium 104 Reproducible demo link https:...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.