SfTextInputLayout do not react to change of focus of InputView control

Hi team,

We are facing an issues with SfTextInputLayout control, that is present just on iOS platform.

In case that we set an Xamarin.Forms.Editor control into  SfTextInputLayout.InputView from code behind and then we call  Xamarin.Forms.Editor.Focus() metod,  SfTextInputLayout do not react to change of focus. If we put Task.Delay() before call of  Xamarin.Forms.Editor.Focus() metod, then  SfTextInputLayout react correctly to change of focus.

Can you please take a look at this issue? There is a test app in attachment, demonstrating the issue.

Thanks,

Peter


Attachment: SfTextInputLayoutTestApp_eddf9024.7z

3 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team May 12, 2022 12:22 PM UTC

We checked the reported problem with the provided sample by commenting out the delay before calling the Focus method. But, we are unable to replicate the problem from our side on the iOS platform. Please get the video from the below attachment.


If you still face any problem, please revert us by sharing the device and configuration details. This will allow us to assist you with a better solution as soon as possible.


Attachment: TextInputlayoutDemo_67bf0a7d.zip


PK Peter Kis May 13, 2022 02:19 PM UTC

Hi Eswaran,

based on provided video, you were able to reproduce the problem ;) . The problem is that the SfTextInputLayout border is not colored blue and the stroke width is not changed from 1 to 2.



ET Eswaran Thirugnanasambandam Syncfusion Team May 17, 2022 01:45 PM UTC

We would like to inform you that, when adding the input view to the SfTextInputLayout control dynamically, it takes some milliseconds to render the InputView control. So, when we calling the focus method for the InputView before it gets rendered, then the focused event is not get raised in our source level. So, the FocusColor and FocusedStrokeWidth properties are not updated correctly since we have applied those from this focus changed event. We recommend you to overcome this problem by adding minimal delay before calling the focus method after the input view is added as you have provided in your earlier update.


Loader.
Up arrow icon