-
|
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi. So the focus element is a document-specific value. The root element is not part of any document, thus it cannot be focused. If you instead focus the element's owning document, I expect it to work. I'm not sure why the |
Beta Was this translation helpful? Give feedback.
It's hard to say just based on this. It sounds like you have some some form of memory corruption going on. Try compiling with address sanitizer or running with another memory sanitizer tool to try to figure out where the actual issue occurs. There are some further hints here you could take a look at: https://mikke89.github.io/RmlUiDoc/pages/cpp_manual/troubleshooting.html
This one in particular:
I don't know what your
documentsmember owns exactly, but if it is tied to the lifetime of your event listeners, t…