Skip to content

Commit 6e2451a

Browse files
rigdernrozele
authored andcommitted
Fix rendering of TextInput after programmatic focus (microsoft#554)
When programmatically giving a TextInput focus, it wasn't rendering properly (e.g. the focus rect wasn't drawn, the cursor wasn't drawn or it was drawn in the wrong spot, selected text wasn't highlighted). It looks like ReactTextBox overrode OnGotFocus but forgot to give TextBox's handler a chance to run.
1 parent 1a6fd8b commit 6e2451a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ReactWindows/ReactNative/Views/TextInput/ReactTextBox.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public int IncrementEventCount()
4141

4242
protected override void OnGotFocus(RoutedEventArgs e)
4343
{
44+
base.OnGotFocus(e);
4445
if (ClearTextOnFocus)
4546
{
4647
Text = "";

0 commit comments

Comments
 (0)