Improuve ComboMultipleDropdownList style

This commit is contained in:
Paul Chavard 2021-04-23 12:45:04 +01:00
parent c6bf29d936
commit 85b907807a
11 changed files with 128 additions and 79 deletions

View file

@ -1,7 +1,7 @@
import { delegate } from '@utils';
delegate('click', 'body', (event) => {
if (!event.target.closest('.dropdown')) {
if (!event.target.closest('.dropdown, [data-reach-combobox-popover]')) {
[...document.querySelectorAll('.dropdown')].forEach((element) => {
const button = element.querySelector('.dropdown-button');
button.setAttribute('aria-expanded', false);