wip: proper handling of value assignment in reactive object
This commit is contained in:
parent
2fc0d599db
commit
09141b56fd
@ -42,7 +42,7 @@ function set(
|
|||||||
value = toRaw(value)
|
value = toRaw(value)
|
||||||
const hadKey = hasOwnProperty.call(target, key)
|
const hadKey = hasOwnProperty.call(target, key)
|
||||||
const oldValue = target[key]
|
const oldValue = target[key]
|
||||||
if (isValue(oldValue)) {
|
if (isValue(oldValue) && !isValue(value)) {
|
||||||
oldValue.value = value
|
oldValue.value = value
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user