Fixed #4839 - OrderList / PickList: defect on first tab focus

pull/4844/head
tugcekucukoglu 2023-11-17 15:48:28 +03:00
parent 1fdc9ccb88
commit 7aa7230082
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ export default {
return ObjectUtils.findIndexInList(item, this.d_selection) != -1; return ObjectUtils.findIndexInList(item, this.d_selection) != -1;
}, },
onListFocus(event) { onListFocus(event) {
const selectedFirstItem = DomHandler.findSingle(this.list, '[data-p-highlight="true"]'); const selectedFirstItem = DomHandler.findSingle(this.list, '[data-p-highlight="true"]') || DomHandler.findSingle(this.list, '[data-pc-section="item"]');
if (selectedFirstItem) { if (selectedFirstItem) {
const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.list.children); const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);

View File

@ -264,7 +264,7 @@ export default {
return ObjectUtils.findIndexInList(item, this.d_selection[listIndex]) != -1; return ObjectUtils.findIndexInList(item, this.d_selection[listIndex]) != -1;
}, },
onListFocus(event, listType) { onListFocus(event, listType) {
const selectedFirstItem = DomHandler.findSingle(this.$refs[listType].$el, '[data-p-highlight="true"]'); const selectedFirstItem = DomHandler.findSingle(this.$refs[listType].$el, '[data-p-highlight="true"]') || DomHandler.findSingle(this.$refs[listType].$el, '[data-pc-section="item"]');
if (selectedFirstItem) { if (selectedFirstItem) {
const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.$refs[listType].$el.children); const findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.$refs[listType].$el.children);