[QUESTION] Update min max values of vue-slider
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 #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 #1365
[QUESTION] Vertical panel buttons
Hi, I am trying to add vertical buttons in a panel. I have added a flexbox with a vertical direction, but since an additional div is added...
Issue #2771
[BUG] component with textable:1 not working since version 0.16.12
Hello, I've just updated to the lasted version 0.16.12 and have a bug when trying to move a component that has the property textable:1 into...
Issue #2337
[BUG / QUESTION] Deleting default styles does not work
Hello, i'm trying to delete some of the default styles of the blocks. I wrote everything I changed in a plugin. I used this function to upd...
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.