Files
compiler-explorer/static
mattgodbolt-moltyandClaude Opus 5 5009f2f433 Re-render the difftype dropdown when its options are rebuilt
TomSelect's addOptions() does not re-render a dropdown that is already
open. So when a compile result lands while the user has the difftype
picker open, clearOptions() strips the rendered .option nodes and
nothing puts them back: the list goes empty until it is reopened.

Call refreshOptions(false) when the picker is open. The false skips
tom-select's open/close handling (both branches are gated on that
argument), so the dropdown's state is untouched and only the list is
re-rendered. Guarded on isOpen so the common closed case does no
rendering work on every compile.

This is also the cause of the flaky cypress test in diff.cy.ts, which
types into the options field and then clicks the picker without waiting
for the debounced recompile to settle.

Fixes #9056
Fixes #9045

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-24 22:08:17 -05:00
..
2025-10-28 09:45:26 +01:00
2026-06-02 12:19:29 -05:00
2026-07-02 18:26:35 +01:00
2026-06-02 12:19:29 -05:00
2025-07-28 10:34:46 -05:00
2025-04-24 12:10:37 -05:00