focus to target after toggle

This commit is contained in:
Christophe Robillard 2021-03-16 11:33:39 +01:00
parent df3bd3a1d2
commit 6026793c1d

View file

@ -16,5 +16,6 @@ delegate('click', TOGGLE_SOURCE_SELECTOR, (evt) => {
const targetElements = document.querySelectorAll(targetSelector);
for (let target of targetElements) {
toggle(target);
target.focus();
}
});