Skip to content

Commit

Permalink
fix(calendarpicker): Make sure to clear the over visual state when cl…
Browse files Browse the repository at this point in the history
…osing and re-opening the picker
  • Loading branch information
dr1rrb committed Jun 4, 2021
1 parent aea1019 commit a19d2c8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ private void Uno_InvalidateRender()

private void Uno_MeasureChrome(Size availableSize)
{
// Uno Patch:
// When CalendarDatePicker is closing we won't get a PointerExited, so we will stay flag as hovered.
// If we re-open the picker, the flag is never cleared and we will still drawing the over state.
// Here we patch this by syncing the local over state with the uno's internal over state.
if (IsHovered() && !IsPointerOver)
{
SetIsHovered(false);
}
}

private void Uno_ArrangeChrome(Rect finalBounds)
Expand Down

0 comments on commit a19d2c8

Please sign in to comment.