Skip to content

Commit

Permalink
fix: Fixed the Event.Use() warning message when a dropdown is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidAlloy committed Oct 16, 2021
1 parent bddebd1 commit 0b8e94c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Editor/TypeDropdown/SelectionTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using SolidUtilities.Editor.Extensions;
using SolidUtilities.Editor.Helpers;
using SolidUtilities.Extensions;
using SolidUtilities.Helpers;
Expand Down Expand Up @@ -62,7 +61,9 @@ public SelectionNode SelectedNode
set
{
_selectedNode = value;
Event.current.Use();

if (Event.current.type != EventType.Layout)
Event.current.Use();
}
}

Expand Down

0 comments on commit 0b8e94c

Please sign in to comment.