TextEditor inside PopupMenu issues

I have a custom component that consists of a TextEditor and a listbox which I’ve stuck inside a popupmenu. The TextEditor has randomly stopped accepting keystroke or focus on Mac only. It works fine in windows, but Mac it was working and it then stopped. I can’t figured out what I changed and nothing seems to stick out. I’ve made a lot of tests including making sure the editor is being selected. I used mouse down to double check it was being selected and focused and it is. But nothing in the TextEditor is working. The carpet isn’t shown keystrokes aren’t recognised. Any ideas guys. I’m at an absolute loss.