Personal portfolio project....any help

I have two media query for my project on a width of 500px , I have a button containing the navigation elements but if I click on them it is not responding and I have try so many times. .here is link
https://codepen.io/Abdallah-Hidir/pen/VwPLjyr

 btn.addEventListener("blur", function(){
   display.style.display="none"
 })

This is causing the problem. Remove this and it works.

okay thanks a lot…

Though it is a bit of a hack, you could do:

btn.addEventListener("blur", function(){
  setTimeout(function(){
    display.style.display="none";
  },100);
})
1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.