TreeSelect accessibility warning fixes

pull/4077/head
Tuğçe Küçükoğlu 2023-06-22 09:46:22 +03:00
parent f7531d5c67
commit 99aea5b000
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ export default {
} }
}, },
onArrowDown(event) { onArrowDown(event) {
const nodeElement = event.target; const nodeElement = event.target.getAttribute('data-pc-section') === 'toggler' ? event.target.closest('[role="treeitem"]') : event.target;
const listElement = nodeElement.children[1]; const listElement = nodeElement.children[1];
if (listElement) { if (listElement) {