mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
Draws a dropdown value even if the value is invalid
This commit is contained in:
parent
6881e0fe00
commit
ae735beb2e
@ -45,7 +45,7 @@ namespace TriInspector.Elements
|
||||
_currentValue = _property.Value;
|
||||
_currentText = _valuesGetter.Invoke(_property)
|
||||
.FirstOrDefault(it => _property.Comparer.Equals(it.Value, _property.Value))
|
||||
?.Text ?? "";
|
||||
?.Text ?? (_property.Value?.ToString() ?? string.Empty);
|
||||
}
|
||||
|
||||
var controlId = GUIUtility.GetControlID(FocusType.Passive);
|
||||
|
Loading…
Reference in New Issue
Block a user