How are you hiding the dropdown window when the user clicks away from it? #50
-
Continuing the discussion from #44. As mentioned, I currently use a button to both show and hide the window on my config. I'd love to be able to hide the window when I click away from it. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I just realized you answered this in the original thread. Nevermind lol. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@Jas-SinghFSU I copied the code for DropDownMenu.ts to my config but it doesn't seem to be working. I'm able to open the dropdown window but can't close it by clicking away. I'm also logging a message whenever either EventBox is clicked, and it looks like the "parent-event" box is not using up the entire screen. How are you making it use the entire screen? It works fine when I use your config. I commented out the "moveBoxToCursor" line but didn't think it would be necessary for closing the window. |
Beta Was this translation helpful? Give feedback.
Okay, so... I had commented the "moveBoxToCursor" line. Adding it and using the "openMenu" function rather than calling "App.toggleWindow" directly seems to have fixed it. I'm still not sure how it works but it does.