2
0
Эх сурвалжийг харах

refactor(runtime-vapor): update selected option

三咲智子 Kevin Deng 2 жил өмнө
parent
commit
77743006b8

+ 0 - 6
packages/runtime-vapor/src/directives/vModel.ts

@@ -175,12 +175,6 @@ function setSelected(
     return
     return
   }
   }
 
 
-  // Disable fast path due to https://github.com/vuejs/core/issues/10267
-  // fast path for updates triggered by other changes
-  // if (isArrayValue && looseEqual(value, oldValue)) {
-  //   return
-  // }
-
   for (let i = 0, l = el.options.length; i < l; i++) {
   for (let i = 0, l = el.options.length; i < l; i++) {
     const option = el.options[i]
     const option = el.options[i]
     const optionValue = getValue(option, instance)
     const optionValue = getValue(option, instance)