summaryrefslogtreecommitdiff
path: root/crates/gipfel-desktop/build.rs
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-18 21:47:56 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-11-18 21:47:56 +0100
commit73ad3eccad74754c1e74ff3025f4d4581f6178cb (patch)
tree0f0d3887795c917c889a590e204eb13cb94216ed /crates/gipfel-desktop/build.rs
parent08636f9a7aeb082b7ed6c5bb56eebdbcb224fa2a (diff)
web: sync projection dropdown via the selectedIndex property
The dropdown mirrored the projection state through the 'selected' ATTRIBUTE on the options - but that only drives the DEFAULT selection. Once the browser's selectedIndex property has been established (first render, user interaction), patching the attribute no longer moves the visible choice: loading a panorama with a gipfel comment after a rectilinear one updated the model (peaks rendered correctly) while the dropdown kept showing the old mode. Attach a NodeRef to the <select> and set the selectedIndex property in an effect on every projection state change. The option attributes stay for the initial paint.
Diffstat (limited to 'crates/gipfel-desktop/build.rs')
0 files changed, 0 insertions, 0 deletions