Commit 2b9d6d2
committed
🐛 Fix stale retention slider label when value equals the slider minimum
The FormSlider summary label was only recomputed on value changes, and the
Units dependency property defaulted to Hours. When the Minimum binding was
applied, it coerced Value (0 -> minimum) and rendered the label while Units
was still at its default. If the bound value then equaled the minimum (e.g.
an audit retention of exactly 1 day, or error retention of exactly 5 days),
no further value change occurred and the label stuck at e.g. "1 Hours".
Default Units to Days (the only unit actually used) and refresh the summary
whenever Units changes, making the label independent of binding order.
The stored setting was never affected; the defect was display-only.1 parent bdba151 commit 2b9d6d2
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| |||
107 | 112 | | |
108 | 113 | | |
109 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
110 | 118 | | |
111 | | - | |
| 119 | + | |
| 120 | + | |
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| |||
0 commit comments