We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ac0f2e commit a07f1b2Copy full SHA for a07f1b2
packages/reactivity/src/baseHandlers.ts
@@ -1,5 +1,6 @@
1
import {
2
type Target,
3
+ isProxy,
4
isReadonly,
5
isShallow,
6
reactive,
@@ -57,7 +58,7 @@ function createArrayInstrumentations() {
57
58
}
59
// we run the method using the original args first (which may be reactive)
60
const res = arr[key](...args)
- if (res === -1 || res === false) {
61
+ if (isProxy(args[0]) && (res === -1 || res === false)) {
62
// if that didn't work, run it again using raw values.
63
return arr[key](...args.map(toRaw))
64
} else {
0 commit comments