@@ -292,6 +292,11 @@ public partial class SfTextInputLayout : SfContentView, ITouchListener, IParentT
292
292
/// </summary>
293
293
Size _controlSize = Size . Zero ;
294
294
295
+ /// <summary>
296
+ /// Indicates whether semantics need to be reset.
297
+ /// </summary>
298
+ bool _hasResetSemantics = false ;
299
+
295
300
/// <summary>
296
301
/// The field sets and checks the text.
297
302
/// </summary>
@@ -700,7 +705,7 @@ void PopulateNumericSemanticsNodes(object? content)
700
705
AddNumericUpDownNodes ( numericUpDown ) ;
701
706
break ;
702
707
case SfNumericEntry when IsClearIconVisible :
703
- AddSemanticsNode ( _clearIconRectF , 2 , "Clear button" ) ;
708
+ AddClearButtonNodes ( 2 ) ;
704
709
break ;
705
710
}
706
711
}
@@ -727,18 +732,28 @@ void AddUpDownNodes(SfNumericUpDown numericUpDown, bool isUpEnabled, bool isDown
727
732
728
733
if ( addClearIconFirst && IsClearIconVisible )
729
734
{
730
- AddSemanticsNode ( _clearIconRectF , 2 , "Clear button" ) ;
735
+ AddClearButtonNodes ( 2 ) ;
731
736
}
732
737
733
738
AddSemanticsNode ( isVerticalInline ? _downIconRectF : _upIconRectF , addClearIconFirst ? 3 : 2 , "Up button" , isUpEnabled ) ;
734
739
AddSemanticsNode ( isVerticalInline ? _upIconRectF : _downIconRectF , addClearIconFirst ? 4 : 3 , "Down button" , isDownEnabled ) ;
735
740
736
741
if ( ! addClearIconFirst && IsClearIconVisible )
737
742
{
738
- AddSemanticsNode ( _clearIconRectF , 4 , "Clear button" ) ;
743
+ AddClearButtonNodes ( 4 ) ;
739
744
}
740
745
}
741
746
747
+ /// <summary>
748
+ /// Adds a semantic node for clear button.
749
+ /// </summary>
750
+ void AddClearButtonNodes ( int index )
751
+ {
752
+ var tempBounds = _clearIconRectF ;
753
+ tempBounds . Width = tempBounds . Height = IconSize ;
754
+ AddSemanticsNode ( tempBounds , index , "Clear button" ) ;
755
+ }
756
+
742
757
/// <summary>
743
758
/// Adds a semantic node with specified properties.
744
759
/// </summary>
0 commit comments