GrapesJS / style-bg

Full-stack background style property type for GrapesJS, with the possibility to add images, colors, and gradients
MIT License
33 stars 18 forks source link

Custom "directions" added with propExtender are not working correctly #32

Open mvelarde238 opened 11 months ago

mvelarde238 commented 11 months ago

Hello!

I'm trying to add custom directions, but I'm encountering an issue. When I select one of the custom directions, the "view" appears fine. However, the selector still displays one of the default directions. Additionally, when I add another spot color to the gradient, the view doesn't reflect the correct direction.

You can see the issue demonstrated in this CodePen: https://codepen.io/mvelarde/pen/PoVbZbR

Am I using the correct method for extending a property?