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

两个BUG反馈 #10

Open
isaac-zhao opened this issue Jan 22, 2019 · 0 comments
Open

两个BUG反馈 #10

isaac-zhao opened this issue Jan 22, 2019 · 0 comments

Comments

@isaac-zhao
Copy link

  1. 在form表单下,region-picker(prop:muliple=true),点击确认、取消按钮会Submit Form,需要设置button的type=button
    h( 'button', { class: { 'region-picker__button': true, default: true }, attrs: { type: 'button' }, on: { click: () => this.blur() } }, this.cancelText ),
  2. region-picker(prop:muliple=true),点击取消按钮,没有Reset Value
    blur() { this.panelVisible = false this.searchValue = '' if (this.multiple && !this.confirmed) { this.selected = this._selected this.$emit('change', this.modelValue) this.$emit('input', this.modelValue) this.dispatch('ElFormItem', 'el.form.change', this.modelValue) } if (this.$refs.searchInput) { this.$nextTick(() => { this.$refs.searchInput.blur() this.$emit('blur') this.dispatch('ElFormItem', 'el.form.blur', this.modelValue) this.isFocus = false }) } } },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant