diff --git a/source/funkin/editors/ui/UIUtil.hx b/source/funkin/editors/ui/UIUtil.hx index c1054cff..056cf59e 100644 --- a/source/funkin/editors/ui/UIUtil.hx +++ b/source/funkin/editors/ui/UIUtil.hx @@ -150,7 +150,7 @@ class UIUtil { } else if (member is UITextBox) @:privateAccess { var textbox:UITextBox = cast member; if (textbox.__wasFocused) { - textbox.onChange(textbox.label.text); + if (textbox.onChange != null) textbox.onChange(textbox.label.text); textbox.__wasFocused = false; } } @@ -159,4 +159,4 @@ class UIUtil { confirmUISelections(cast member); } } -} \ No newline at end of file +}