Fixed #4383 - OrderList and PickList: Getting error when empty field
parent
936f95783e
commit
001e22a262
|
@ -141,6 +141,7 @@ export default {
|
|||
onListFocus(event) {
|
||||
const selectedFirstItem = DomHandler.findSingle(this.list, '[data-p-highlight="true"]');
|
||||
|
||||
if (selectedFirstItem) {
|
||||
const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);
|
||||
|
||||
this.focused = true;
|
||||
|
@ -149,6 +150,7 @@ export default {
|
|||
|
||||
this.changeFocusedOptionIndex(index);
|
||||
this.$emit('focus', event);
|
||||
}
|
||||
},
|
||||
onListBlur(event) {
|
||||
this.focused = false;
|
||||
|
|
|
@ -265,6 +265,8 @@ export default {
|
|||
},
|
||||
onListFocus(event, listType) {
|
||||
const selectedFirstItem = DomHandler.findSingle(this.$refs[listType].$el, '[data-p-highlight="true"]');
|
||||
|
||||
if (selectedFirstItem) {
|
||||
const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.$refs[listType].$el.children);
|
||||
|
||||
this.focused[listType] = true;
|
||||
|
@ -273,6 +275,7 @@ export default {
|
|||
|
||||
this.changeFocusedOptionIndex(index, listType);
|
||||
this.$emit('focus', event);
|
||||
}
|
||||
},
|
||||
onListBlur(event, listType) {
|
||||
this.focused[listType] = false;
|
||||
|
|
Loading…
Reference in New Issue