Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popup-picker 作为多选,每次选择确定后点击某个按钮清空value,再次选择的时候如果选择的相同选项,则不会显示 #1230

Closed
xuyangqiao opened this issue Apr 10, 2017 · 4 comments

Comments

@xuyangqiao
Copy link

Version ^2.1.1-rc.6

Android or iOS

For Android issues, please specify the brand, model and browser

Your Codes

<group gutter='0' labelWidth='5em'>
    <popup-picker title="专业" :data="profession" placeholder="请选择您的专业" v-model="professionValue" value-text-align="left" show-name></popup-picker>
</group>
<x-button slot="right" type="primary" mini @click.native='addMajor' v-if="majorAddList.length < 3">添加</x-button>

addMajor () {
      let obj = this.majorFind(this.parentList, this.professionList, this.parentValue[0], this.professionValue[0])
      this.majorAddList.push({
      pid: this.professionValue[0],
      pname: obj.pname,
      cname: obj.cname
    })
    this.professionValue.splice(0, 1) // 清空选择
 }

我用popup-picker 选择某个选项后,然后清空value 再次选择的时候,如果选择相同的则不会显示所选择的value,绑定的model也不会有变化,请问怎么解决。

@MLYC
Copy link

MLYC commented Jul 25, 2018

这个bug又有了

@MLYC
Copy link

MLYC commented Jul 25, 2018

@airyland

@kitkimwong
Copy link

这个bug又有了

@kitkimwong
Copy link

@airyland

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants