Open BibaltiK opened 2 years ago
Problem: The dropwdown in the top navigation can only be closed by clicking on the button or a link in it.
Task: We need a function that closes the dropdown if clicked outside the navigation.
To the note: Using your own vue directive https://vuejsexamples.com/a-vue-js-3-click-outside-custom-directive/
Problem: The dropwdown in the top navigation can only be closed by clicking on the button or a link in it.
Task: We need a function that closes the dropdown if clicked outside the navigation.