We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0860d9 commit fed45abCopy full SHA for fed45ab
Assets/UnityDebugSheet/Runtime/Core/Scripts/DefaultImpl/Cells/EnumPickerCell.cs
@@ -29,6 +29,15 @@ public sealed class EnumPickerCell : Cell<EnumPickerCellModel>
29
30
protected override void SetModel(EnumPickerCellModel model)
31
{
32
+ if (_isInitialized && 0 < _values.Count)
33
+ {
34
+ if (_values[0].GetType() != model.ActiveValue.GetType())
35
36
+ _options.Clear();
37
+ _values.Clear();
38
+ _isInitialized = false;
39
+ }
40
41
if (!_isInitialized)
42
43
var enumType = model.ActiveValue.GetType();
0 commit comments