Skip to content

Commit 8a2c0d5

Browse files
committed
correctly set the default value
1 parent d142182 commit 8a2c0d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Editor/UIElements/ModalInputPopup.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ void CreateGUI() {
5858
Label descriptionLbl = new Label(description);
5959
descriptionLbl.style.marginLeft = 2;
6060

61-
keyInput = new TextField(defaultValue);
61+
keyInput = new TextField();
62+
keyInput.value = defaultValue;
6263
keyInput.RegisterValueChangedCallback((evt) => ValidateInput(evt.newValue));
6364
keyInput.RegisterCallback<KeyDownEvent>(e => {
6465
if (e.keyCode == KeyCode.Return) {

0 commit comments

Comments
 (0)