Skip to content

Commit cef0240

Browse files
Added Bug Fix Comments
1 parent 5ccbfca commit cef0240

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

maui/src/TextInputLayout/SfTextInputLayout.Methods.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ void SetupAndroidView(object? sender)
520520
}
521521
if (sender is Entry entry)
522522
{
523+
//Explicitly reset ReturnType to handle native restrictions.
523524
ApplyNativeProperties(entry);
524525
}
525526
#endif

maui/src/TextInputLayout/SfTextInputLayout.Properties.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,6 +2142,7 @@ static void OnIsHintFloatedPropertyChanged(BindableObject bindable, object oldVa
21422142
{
21432143
if (bindable is SfTextInputLayout inputLayout && newValue is bool value)
21442144
{
2145+
//Adjusted Opacity from 0 to 0.00001 to ensure the content remains functionally active while enabling the ReturnType property.
21452146
if (inputLayout.Content is InputView || inputLayout.Content is Picker)
21462147
{
21472148
inputLayout.Content.Opacity = value ? 1 : (DeviceInfo.Platform == DevicePlatform.iOS ? 0.00001 : 0);

maui/src/TextInputLayout/SfTextInputLayout.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ protected override void OnContentChanged(object oldValue, object newValue)
665665
}
666666

667667
//For placeholder overlap issue here handled the opacity value for controls.
668+
//Adjusted Opacity from 0 to 0.00001 to ensure the content remains functionally active while enabling the ReturnType property.
668669
if (newValue is InputView entryEditorContent)
669670
{
670671
entryEditorContent.Opacity = IsHintFloated ? 1 : (DeviceInfo.Platform == DevicePlatform.iOS ? 0.00001 : 0);

0 commit comments

Comments
 (0)