Fixed #5106 - Change visual focus behavior for UI/UX enhancement on some components

This commit is contained in:
mertsincan 2024-01-18 13:44:20 +00:00
parent 55c68a010b
commit bed58e4f80
5 changed files with 12 additions and 12 deletions

View file

@ -431,7 +431,7 @@ export default {
const selectedId = DomHandler.find(this.list, '[data-pc-section="item"]')[index].getAttribute('id');
this.focusedOptionIndex = selectedId;
this.focusedOptionIndex = event?.type === 'click' ? -1 : selectedId;
if (metaSelection) {
const metaKey = event.metaKey || event.ctrlKey;