mirror of
https://github.com/penpot/penpot.git
synced 2026-09-19 10:26:14 +00:00
select* resets its label to `default-selected` whenever its options change identity. The access token dialog builds its options vector inline, so picking an expiration re-rendered the dialog and the label snapped back to "Never", although the form kept the picked value and the token was created with it. form-select* now passes the form value as `default-selected` when it holds a non-blank string, so the reset lands on the picked option. The caller's default still applies while the form value is blank. Closes #11663 AI-assisted-by: claude-opus-5 Signed-off-by: chulgil <2044587+chulgil@users.noreply.github.com> Co-authored-by: chulgil <2044587+chulgil@users.noreply.github.com> Co-authored-by: Andrey Antukh <niwi@niwi.nz>