From e89c0411c64dfdab808fa80ae475ee7aab96e828 Mon Sep 17 00:00:00 2001 From: Frakits <90983918+Frakits@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:04:12 +0300 Subject: [PATCH] Update UIUtil.hx --- source/funkin/editors/ui/UIUtil.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}