[bug] style manager slider min value bug
Question
when I set slider to 0 (min value) the slider return -1 value and this style property is ingored completely since it is not valid css. for example border-width: -1px !important
I found the code why this happens only min value. in the style manager slider view code
when slider value not min value, this works well. but if value is set to minimum(for example 0), second model.set didn't work and it break the real value.
Isn't possible set value standard without -1 and +1?
for short fix, how can I extend this function?
Answers (3)
@starcraft0429, could you provide us a code example? I have tried to simulate it but without success.
@artf Be our hero ;)
Guys, it's really important to follow the ISSUE template, I don't even know which version do you use! Can you create a reproducible demo because I don't understand how to reproduce it
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2843
[BUG] Can't remove style property on selected device
Hi, have a problem with removing style property on selected device (clearProperties: true). You can reproduce the problem on https://grapes...
Issue #1366
[BUG] Duplicating CSS
On newest version of Grapesjs. I can replicate bug on both. Linux Ubuntoo, Moxilla. I expect that the css only shows up once, otherwise it'...
Issue #1245
How to set slider in margin-top property
Hi @artf, Can you please let me know how we can set the slider in margin-top property.I am setting with the below code but slider is moving...
Issue #3137
BUG: When I select an particular element I'm not getting its styles. This issue happens only with some elements.
Not getting styles of the selected element Here is my code, const model = editor.StyleManager.getModelToStyle(component); let styleObject =...
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.