Commit 6b8a6e3
committed
[DREAM-808] Fixes removed checked node form state
https://community.openproject.org/wp/DREAM-808
Extends the childList guard to inspect removed nodes symmetrically
with added ones, so removing a checked tree item also rebuilds the
hidden form inputs instead of leaving a stale input that submits the
deleted node's value. Extracts the shared check into a private
helper.
Also passes attributeOldValue: true to the observer so the existing
oldValue comparison actually filters out same-value aria-checked
rewrites instead of rebuilding the inputs on every write.
Adds a browser regression test removing a checked node from a
connected tree, and a changeset for the insertion and removal fixes.1 parent 46506c1 commit 6b8a6e3
3 files changed
Lines changed: 39 additions & 8 deletions
File tree
- .changeset
- app/components/primer/alpha/tree_view
- test/system/alpha
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 42 | + | |
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
| |||
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
| 58 | + | |
65 | 59 | | |
66 | 60 | | |
67 | 61 | | |
| |||
76 | 70 | | |
77 | 71 | | |
78 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
981 | 1002 | | |
982 | 1003 | | |
983 | 1004 | | |
| |||
0 commit comments