TreeSelect accessibility warning fixes
parent
f7531d5c67
commit
99aea5b000
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue