Skip to content

Commit

Permalink
made sure we save the correct instance of context menu button (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
haavamoa authored Jan 26, 2023
1 parent be06844 commit d3b7129
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ protected override void OnElementChanged(ElementChangedEventArgs<Button> e)
{
base.OnElementChanged(e);

if (e.NewElement is ContextMenuButton m_contextMenuButton)
if (e.NewElement is ContextMenuButton contextMenuButton)
{
m_contextMenuButton = m_contextMenuButton;
m_contextMenuButton = contextMenuButton;
if (Control != null)
{
{
Expand Down

0 comments on commit d3b7129

Please sign in to comment.