Entry ClearButton not working in SfTextInputLayout

the clear button does not working when set Entry as inputview

public class FEntry : SfTextInputLayout

    {


        public new FEntryBase InputView

        {

            get => Content as FEntryBase ?? throw new InvalidOperationException("Content is not of type FEntryBase");

            set => base.Content = value;

        }


        public FEntry()

        {

            base.Content = new FEntryBase();

            BindingContext = this;

            InputView.Text = string.Empty;

            InputView.Keyboard = Keyboard.Text;

            InputView.FontFamily = FSetting.FontText;

            InputView.TextColor = FSetting.TextColorContent;

            InputView.IsTextPredictionEnabled = false;

            InputView.Keyboard = Keyboard.Create(KeyboardFlags.CapitalizeNone);

            InputView.FontSize = FSetting.FontSizeLabelTitle;

            ShowHint = true;

            Stroke = FSetting.DisableColor;

            HintLabelStyle.FontFamily = FSetting.FontText;

            HintLabelStyle.FontSize = FSetting.FontSizeLabelHint + 4;

            HintLabelStyle.TextColor = FSetting.MainColor;

            IsHintAlwaysFloated = true;

            EnableHintAnimation = true;

            ContainerType = ContainerType.None;

            OutlineCornerRadius = 8;

            FocusedStrokeThickness = UnfocusedStrokeThickness = 1;

            Stroke = FSetting.MainColor;

            InputView.ClearButtonVisibility = ClearButtonVisibility.WhileEditing;

        }

    }

public class FEntryBase : Entry
{
}

1 Reply 1 reply marked as answer

AA Aarthi Arjunan Syncfusion Team December 17, 2024 02:12 PM UTC

Hi,


Thank you for reaching out to us. We have validated your query and were able to reproduce the reported issue on our end.


We would like to inform you that the reported issue "ClearButton not working properly" also occurs in the Framework's Entry control. The issue has been addressed in the Framework, as mentioned in the link provided below, but the fix has not yet been released.


Please refer to the attached Framework issue link for more details.

Framework Issue: 25225


Please don’t hesitate to contact us if you have any concerns or queries.


Regards,

Aarthi A.


Marked as answer
Loader.
Up arrow icon