Subscribe on changes!

OptionHTMLAttributes.value is too restrictive (TypeScript)

avatar
Sep 13th 2021

Version

3.2.11

Reproduction link

sfc.vuejs.org/

Steps to reproduce

According to the docs, it is allowed to bind objects to :value of html

What is expected?

Binding object to option value produces no error.

What is actually happening?

Error: Type is not assignable to type 'string | number | string[] | undefined'. Type is missing the following properties from type 'string[]': length, pop, push, concat, and 28 more.

avatar
Sep 17th 2021

You forgot select @yyx990803