Skip to content

Commit f0fe4c4

Browse files
author
Oskari Leppäaho
committed
Lose the didTextChange variable
1 parent 19e2b1f commit f0fe4c4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

release/NativeEditPlugin/scripts/NativeEditBox.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,10 @@ private void PrepareNativeEdit()
205205
}
206206

207207
private void onTextChange(string newText)
208-
{
209-
bool didTextChange = newText != this.objUnityInput.text;
210-
208+
{
211209
// Avoid firing a delayed onValueChanged event if the text was changed from Unity with the text property in this
212210
// class.
213-
if (!didTextChange)
211+
if (newText == this.objUnityInput.text)
214212
return;
215213

216214
this.objUnityInput.text = newText;

0 commit comments

Comments
 (0)