Skip to content

Commit

Permalink
[runtime] Fix compile error when using EditText from native
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfa committed Dec 10, 2023
1 parent 351f782 commit 594c60b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/src/ceramic/EditText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ class EditText extends Entity implements Component implements TextInputDelegate

inputActive = true;

#if web
if (domInput != null) {
domInput.focus();
}
#end

app.textInput.start(
content,
Expand Down

0 comments on commit 594c60b

Please sign in to comment.