I know this is probably a dumb question, but I'm new to this and can't figure it out.
I have a canvas that becomes visible when the user clicks a button. The canvas contains some elements (TextInput, ComboBox etc.). I want the canvas to disappear whenever the user clicks anywhere outside of the canvas (but of course NOT when the user clicks on elements within the canvas). I though this would accomplished with a focusOut event but I can't seem to get it working.
Any help is greatly appreciated.
One thought is to monitor the click event for the app, if the event.target.parent or the event.target = thebox then leave visible true other wise make visible false.
Thanks David! I havn't had a chance to try this yet, but this seems like the way to go. I appreciate it!