Commit 4c3faf0
committed
Fixed partial match bug in
Previously, `IsSelected()` would mark `/Web/Cat` as being selected if the user was on `/Web/Catacomb` because it relied on a `StartsWith()` query against `UniqueKey`. Fixed this by appending `:` to both the source and the target to ensure that the last `Key` in the `UniqueKey` was a full match, not a partial match.IsSelected
1 parent 66774f7 commit 4c3faf0
3 files changed
Lines changed: 5 additions & 5 deletions
File tree
- Ignia.Topics.Tests/Properties
- Ignia.Topics.ViewModels
- Properties
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
0 commit comments