Update min max values of vue-slider
Dude, this is Vue related question... btw, you just need to pass them in vue function render
Read full answer below ↓Question
Hello,
Ive added vue-slider to my project and I am trying to set the min and max range on the sliders to go -100 to 100. However when I set them I get:
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "min"
I understand this is because I am setting the values on the parent level but I am having trouble setting them directly on my traits.
Would you be able to give me some insight on how to set these using grapes? Thank you!
please see fiddle
Answers (1)
Dude, this is Vue related question...
btw, you just need to pass them in vue function render
h(VueSlider, {
props: {
min: -100,
max: 100,
contained: true,
}
})
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3200
Help needed: Get the component that a block being dropped onto?
Hello, If I drag and drop a block on a dynamically added component, how can I get/access the component that the block is dropped onto? I se...
Issue #1241
[Question]: new style is not reflected in panel
Hello, In my project I have replaced the AssetManager by my own. However, when I use the new manager to update a components background-imag...
Issue #5820
Double Entry in Layers if Component is moved directly after add
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v123Reproducible demo link https://js...
Issue #5593
Layer manager not refreshing on page change
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? MS Edge 120.0.2210.91 Reproducible demo li...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.