Skip to content

Commit e89c041

Browse files
authored
Update UIUtil.hx
1 parent 1993d20 commit e89c041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/editors/ui/UIUtil.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class UIUtil {
150150
} else if (member is UITextBox) @:privateAccess {
151151
var textbox:UITextBox = cast member;
152152
if (textbox.__wasFocused) {
153-
textbox.onChange(textbox.label.text);
153+
if (textbox.onChange != null) textbox.onChange(textbox.label.text);
154154
textbox.__wasFocused = false;
155155
}
156156
}
@@ -159,4 +159,4 @@ class UIUtil {
159159
confirmUISelections(cast member);
160160
}
161161
}
162-
}
162+
}

0 commit comments

Comments
 (0)