Çağrı ErolMaybe, the following snippet can be an alternative solution of outside click action:const target= document.getElementById("target");Feb 25, 20221Feb 25, 20221