Commit a0a77b9
committed
make sure lngering event handlers aes cleared before setting new ones
fixes a bug where the valid options of multi/semi-combo fields were now updated properly when a previous tag change caused the preset of the feature to change.
for example: `leisure=pitch` with `sport=tennis`: when clearing the `sport` tag, the feature changes preset from "Tennis Court" to "Pitch", but it keeps the field for the `sport` tag. However, if the event handlers are not reset, the old event handlers (of the Tennis Cour preset) are still set, preventing the new ones (with the updated tag of the feature) from taking effect.
fixes #122171 parent 7e34a47 commit a0a77b9
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
| |||
703 | 706 | | |
704 | 707 | | |
705 | 708 | | |
| 709 | + | |
706 | 710 | | |
707 | | - | |
708 | | - | |
| 711 | + | |
709 | 712 | | |
710 | 713 | | |
711 | 714 | | |
| |||
0 commit comments