Robin Malfait 93e8b8f4ba fix: outside click behaviour (#19)
* add failing tests to prove the outside-click issue

* fix outside click when we have multiple menu's

- We removed the `toggleMenu` since we only used it in a single spot,
  and had to do some side effect logic (focus & event.preventDefault).
  Wanted to make this consistent between React and Vue.
- If, in the "outside click" logic we detect that we clicked on the
  button, we also ignore it.
- If, we click on the button we will toggle the menu.

Fixes: #18
2020-09-28 15:52:00 +02:00
2020-09-16 18:19:33 +02:00
2020-09-16 18:19:33 +02:00
2020-09-25 12:42:31 +02:00
2020-09-16 18:19:33 +02:00
2020-09-16 18:19:33 +02:00
2020-09-16 18:19:33 +02:00
2020-09-16 18:19:33 +02:00
2020-09-16 18:19:33 +02:00
S
Description
Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
6.5 MiB
Languages
TypeScript 95.3%
Vue 4.3%
JavaScript 0.3%
Shell 0.1%