Skip to content

Commit 1d48e68

Browse files
Illustar0Copilot
andauthored
fix: prevent multiple subscriptions to Loaded event
Co-authored-by: Copilot <[email protected]>
1 parent 03a81ae commit 1d48e68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/RangeSelector/src/RangeSelector.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ protected override void OnApplyTemplate()
149149
tb.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
150150

151151
// Ensure thumbs and active rectangle are synced after the control is fully loaded
152+
Loaded -= RangeSelector_Loaded;
152153
Loaded += RangeSelector_Loaded;
153154

154155
base.OnApplyTemplate();

0 commit comments

Comments
 (0)