Steps to reproduce:
- insert the cursor into a text input so it had focus;
- resize XD window’s height until the panel displays its scrollbar;
- Text input loses focus.
The same also happens if a text input gain focus when the panel already has the scrollbar: it loses focus when panel is high enough to show all contents.
Text inputs keep their focus regardless of panel’s or application’s size.