CascadeSelect root list focus updates

pull/6569/head
tugcekucukoglu 2024-10-11 11:32:38 +03:00
parent e0997a9238
commit 66fef7f985
1 changed files with 1 additions and 7 deletions

View File

@ -347,13 +347,7 @@ export default {
}, },
onOptionMouseEnter(event) { onOptionMouseEnter(event) {
if (this.focusOnHover) { if (this.focusOnHover) {
if (isNotEmpty(this.modelValue)) { if (this.dirty || (!this.dirty && 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))) {
this.onOptionChange(event); this.onOptionChange(event);
} else if (!this.dirty && event.processedOption.level === 0) { } else if (!this.dirty && event.processedOption.level === 0) {
this.onOptionClick(event); this.onOptionClick(event);