xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

Focused not firing keyboard #4573

Open samhouts opened 5 years ago

samhouts commented 5 years ago

From @achrafbenalaya on November 27, 2018 13:41

In this example , the keyboard is not firing only after focusing 2 time on entry , I tried this a lot and seems there is an issue right here . <VisualState x:Name="Focused"> <VisualState.Setters> <Setter Property="FontSize" Value="36" /> <Setter Property="BackgroundColor" Value="Lime" /> </VisualState.Setters> </VisualState>

Copied from original issue: MicrosoftDocs/xamarin-docs#1180

Steps to Reproduce:

  1. Get the sample from https://developer.xamarin.com/samples/xamarin-forms/UserInterface/VsmDemos/
  2. Tap VSM on View
  3. Type something into the third box. Second box should turn green.
  4. Dismiss keyboard.
  5. Tap on second box.

Expected result

Soft keyboard appears

Actual result

Nothing. Keyboard does not appear unless you tap the second box again.

Tested on Pixel 3 XL.

samhouts commented 5 years ago

Might be a consequence of setting the IsEnabled property like that. We'll have to investigate further.

PauchardThomas commented 5 years ago

The problem is FontSize property, when it will be fixed ?

jdylanmc commented 5 years ago

I also am seeing this issue. Any resolution coming?

mjfreelancing commented 5 years ago

I am experiencing this same issue with Xamarin Forms v4.2. Is this on the radar for a resolution ? My XAML is:

`

`