Element: [Bug Report] Do not put the selected values in the attribute name to value

Created on 1 Apr 2018  ·  3Comments  ·  Source: ElemeFE/element

Element UI version

0.1.0

OS/Browsers version

winsows 10 / google chrome 65

Vue version

2.5.16

Reproduction Link

https://jsfiddle.net/3utsgwzz/8/

Steps to reproduce

Set to

<el-select
multiple
filterable
remote
reserve-keyword
:remote-method="remoteMethod">

if set :multiple="false" is worked, set selected value

What is Expected?

Need put on the <input name="pages[]"> selected values

What is actually happening?

Not set on <input name="pages[]"> selected values

input value is empty

All 3 comments

Value won't be set to input element. Please use v-model instead.

I know what I can use v-model,

but why multiple="false" put value to input but multiple="true" not put

Having the same issue. Value is correctly set and sent with form data when multiple is false. When multiselect is enabled, it's only bound to v-model and not set on the input's value. I'd expect a comma-separated list of selected items or like a native form, an array.

Was this page helpful?
0 / 5 - 0 ratings