Skip to content

Commit

Permalink
Fixed a bug in InputTextField, exception occur when multiple chars is…
Browse files Browse the repository at this point in the history
… being input and maxLength is set,
  • Loading branch information
ytom committed Sep 29, 2017
1 parent 5bdfaa6 commit eb7bd69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Scripts/Core/Text/InputTextField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ public void ReplaceSelection(string value)
if (!_editing)
Stage.inst.focus = this;

textField.Redraw();

int t0, t1;
if (_selectionStart != _caretPosition)
{
Expand Down

0 comments on commit eb7bd69

Please sign in to comment.