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.
Expected behavior:
Text inputs keep their focus regardless of panel’s or application’s size.
This is a known bug in older versions; don’t know if they fixed it in recent versions.
The problem is that focus is lost when UXP switches the panel from non-scrolling to scrolling.
The workaround is to make the panel always scrolling.
/* always scrollable to avoid the transition
* from scrollable to non-scrollable, which
* loses the input state */
panel {
height: calc(100vh - 100px);
overflow-y: scroll;
overflow-x: hidden;
margin: 0;
padding: 0;
}
@kerrishots discovered this for us some months back, and gave us the workaround.