update scroll when panel opens
This commit is contained in:
parent
8878e4a351
commit
6017ed7509
3 changed files with 7 additions and 2 deletions
|
@ -230,12 +230,15 @@
|
|||
handleFocus () {
|
||||
if (this.readonly) return;
|
||||
this.visible = true;
|
||||
this.$refs.pickerPanel.onToggleVisibility(true);
|
||||
},
|
||||
handleBlur () {
|
||||
this.visible = false;
|
||||
this.onSelectionModeChange(this.type);
|
||||
this.internalValue = this.internalValue.slice(); // trigger panel watchers to reset views
|
||||
this.reset();
|
||||
this.$refs.pickerPanel.onToggleVisibility(false);
|
||||
|
||||
},
|
||||
reset(){
|
||||
this.$refs.pickerPanel.reset && this.$refs.pickerPanel.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue