1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-05-10 23:42:16 +00:00
Files
TiddlyWiki5/core/modules
Mario Pietsch e1cff6068c Fix SelectWidget multi-select highlight regression for options containing HTML (#9839) (#9841)
PR #8093 used `child.children.length === 0` to distinguish a plain <option> from an <optgroup>. This test misfires when an <option> contains inline HTML.

E.g. tc-tiddlylink anchors auto-generated for "$:/..." titles.
So on refresh the option's `selected` state was never restored.

- This change switches to a tagName check.
- Adds a regression test plus a guard for the original PR #8092 optgroup
behaviour.
2026-05-05 10:23:36 +01:00
..
2026-05-05 10:11:01 +01:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00
2026-02-20 08:38:42 +00:00