Hi all,
For a project it was requested to close the DropdownTags widget, when your mouse leaves the widget. However, because the top bar and the dropdown part are different elements, I am not sure if I can use the onmouseleave event.
Is there a solution to this problem?
Hi @Damaris Jongbloed
Let me break down the problem and suggest a possible solution:
Here's a potential solution:
Here's a rough outline of how you might implement this in OutSystems and JavaScript:
"
// Assuming you have a container element with id 'dropdownContainer'
// and a function to close the dropdown called 'closeDropdown'
document.addEventListener('DOMContentLoaded', function() {
var container = document.getElementById('dropdownContainer');
container.addEventListener('mouseleave', function() {
closeDropdown();
});
function closeDropdown() {
// Your code to close the dropdown
}
Hope this helps,
Mayur