fix that one annoying ass bug for events
This commit is contained in:
@@ -74,6 +74,7 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
||||
return;
|
||||
}
|
||||
|
||||
chartEditorState.eventDataToPlace = {};
|
||||
buildEventDataFormFromSchema(toolboxEventsDataGrid, schema, chartEditorState.eventKindToPlace);
|
||||
|
||||
if (!_initializing && chartEditorState.currentEventSelection.length > 0)
|
||||
@@ -98,6 +99,8 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
||||
{
|
||||
super.refresh();
|
||||
|
||||
toolboxEventsEventKind.pauseEvent(UIEvent.CHANGE, true);
|
||||
|
||||
var newDropdownElement = ChartEditorDropdowns.findDropdownElement(chartEditorState.eventKindToPlace, toolboxEventsEventKind);
|
||||
|
||||
if (newDropdownElement == null)
|
||||
@@ -156,6 +159,8 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
toolboxEventsEventKind.resumeEvent(UIEvent.CHANGE, true, true);
|
||||
}
|
||||
|
||||
var lastEventKind:String = 'unknown';
|
||||
@@ -170,8 +175,6 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
||||
// Clear the frame.
|
||||
target.removeAllComponents();
|
||||
|
||||
chartEditorState.eventDataToPlace = {};
|
||||
|
||||
for (field in schema)
|
||||
{
|
||||
if (field == null) continue;
|
||||
@@ -264,7 +267,7 @@ class ChartEditorEventDataToolbox extends ChartEditorBaseToolbox
|
||||
var value = event.target.value;
|
||||
if (field.type == ENUM)
|
||||
{
|
||||
value = event.target.value.value;
|
||||
value = event.target.value?.value;
|
||||
}
|
||||
else if (field.type == BOOL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user