maybe try this js code ?
document.onmousedown = function (event) {
// Hide .da only if the clicked element is NOT a BUTTON AND NOT an element with class 'aa'
if (event.target.tagName !== 'BUTTON' && event.target.className !== 'aa') {
document.getElementsByClassName('da')[0].style.display = 'none';
}
};