SfTextInputLayout Trailing view obstructs taps on the associated input view

I am using SfTextInputLayout to give meaning to input views using the leading/trailing view, such as a currency symbol or calendar icon. The leading/trailing view obstructs user taps on the input view, creating a confusing user experience. How can I focus the input view when the leading/trailing view is tapped?

4 Replies 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team April 21, 2021 01:45 PM UTC

Hi Andrew Hoke,

Greetings from Syncfusion.

The input control focus is not required, if the leading / trailing view location is set to the outside.


If the leading / trailing view position is set to inside and the view is pressed, the SfTextInputLayout InputView can be focused by setting the leading / trailing view’s InputTransparent to true as per below code snippet

[XAML]:
 
<inputLayout:SfTextInputLayout Hint="Birth date"  LeadingViewPosition="Inside" > 
     <Entry /> 
     <inputLayout:SfTextInputLayout.LeadingView> 
           <Label Text="&#x1F5D3;"  InputTransparent="True" /> 
      </inputLayout:SfTextInputLayout.LeadingView> 
  </inputLayout:SfTextInputLayout> 

Please have a sample from the below link
https://www.syncfusion.com/downloads/support/forum/164693/ze/TextInputSample-1949992341

The above code is working in UWP, iOS platforms, but not in Android. Currently, we are validating this problem at our source level we will update the details on April 22, 2021.

Let us know if you need any further assistance.

Regards,
Sridevi S.
 
 


Marked as answer

AH Andrew Hoke April 22, 2021 12:05 AM UTC

Thank you, this works great!


MK Muneesh Kumar G Syncfusion Team April 22, 2021 02:41 PM UTC

Hi Andrew Hoke,

For android, we confirmed this as issue and logged bug report internally. The fix for the issue will be available in on our May 4th, 2021 weekly nuget. 

We appreciate your patience until then. 

Thanks,
Muneesh Kumar G.



SS Sridevi Sivakumar Syncfusion Team May 4, 2021 12:19 PM UTC

Hi Andrew Hoke,

We have fixed the reported “SfTextInputLayout InputView cannot focused by setting the leading / trailing view’s InputTransparent to trueissue and the fix is included in our weekly NuGet of May 4, 2021.

NuGet Version: 19.1.0.59

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Sridevi S.  
 


Loader.
Up arrow icon