CascadeSelect root list focus updates
parent
e0997a9238
commit
66fef7f985
|
@ -347,13 +347,7 @@ export default {
|
|||
},
|
||||
onOptionMouseEnter(event) {
|
||||
if (this.focusOnHover) {
|
||||
if (isNotEmpty(this.modelValue)) {
|
||||
const { originalEvent, processedOption } = event;
|
||||
const { index, level, parentKey } = processedOption;
|
||||
|
||||
this.focusedOptionInfo = { index, level, parentKey };
|
||||
this.changeFocusedOptionIndex(originalEvent, index);
|
||||
} else if (this.dirty || (!this.dirty && isNotEmpty(this.modelValue))) {
|
||||
if (this.dirty || (!this.dirty && isNotEmpty(this.modelValue))) {
|
||||
this.onOptionChange(event);
|
||||
} else if (!this.dirty && event.processedOption.level === 0) {
|
||||
this.onOptionClick(event);
|
||||
|
|
Loading…
Reference in New Issue