Seeking assistance with a component issue I am facing. I have a situation where I need to pass a prop and assign a variable from my data to that prop, but it needs to be done in a reactive manner. The child component only accepts Booleans so I cannot modify it directly. The challenge lies in Vue initializing the data, but the disabled attribute not being reactive. I am aware that passing an object to the disabled attribute will make it reactive, however, due to constraints, I am unable to do so.
data() {
let editmode = true;
return {
EditMode: editmode,
schema: [
{
disabled: !editmode,
}
]
}
}
In the future, I will need to update the value of EditMode and have that change reflected in my child component. I currently pass the schema variable to the child component.