Fixed #2619 - Add a param to the show() method to focus Dropdown component
parent
319df1e932
commit
5fe9f29d67
|
@ -238,9 +238,11 @@ export default {
|
|||
isSelected(option) {
|
||||
return ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
|
||||
},
|
||||
show() {
|
||||
show(isFocus) {
|
||||
this.$emit('before-show');
|
||||
this.overlayVisible = true;
|
||||
|
||||
isFocus && this.$refs.focusInput.focus();
|
||||
},
|
||||
hide() {
|
||||
this.$emit('before-hide');
|
||||
|
|
|
@ -379,7 +379,7 @@ export default {
|
|||
<tbody>
|
||||
<tr>
|
||||
<td>show</td>
|
||||
<td>-</td>
|
||||
<td>isFocus: Decides whether to focus on the component. Default value is false.</td>
|
||||
<td>Shows the overlay.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Reference in New Issue