Created by: alpadev
fixes #33840 (closed)
This approach utilizes a function to return the default rootElement
at run time rather then defining it when the code is evaluated. It allows a function or element to be used for the rootElement
in the config, so that no further changes are required.