Minimal case below:
x = new OO.ui.TextInputWidget(); $('#bodyContent').prepend(x.$element); x.focus(); // doesn't work x.$element.focus(); // doesn't work
Expected: the text input should get focus and be ready to accept text input
Actual: nothing happens
Either I'm doing this wrong, or it's a bug. Tested on Firefox, Chrome, and Opera.