Flowfuse Dashboard autofocus to widget?

Is there a way of specifying autofocus on a D2 widget, such as a text input widget, other than by using a ui-template to create the text input widget?

Related issue Globally set autofocus on a node/input · Issue #1942 · FlowFuse/node-red-dashboard · GitHub