Within a modal, I have set up a threejs scene with three point lights. All functions are exported from a separate file called three.ts to the modal component. The issue I am facing is that when I try to initialize DAT.GUI controls, they end up rendering outside the modal instead of inside it. Even though all components are in the same file, the controls seem to be displaying incorrectly. Any assistance on how to resolve this would be highly valued.