Skip to content

Commit 9ffbab5

Browse files
Reverted Unwanted Changes
1 parent 477f36d commit 9ffbab5

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

maui/src/NumericEntry/SfNumericUpDown.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ bool IsInlinePlacement()
12511251
/// <returns>
12521252
/// <c>true</c> if the placement mode is InlineVertical; otherwise, <c>false</c>.
12531253
/// </returns>
1254-
internal bool IsInlineVerticalPlacement()
1254+
bool IsInlineVerticalPlacement()
12551255
{
12561256
return UpDownPlacementMode == NumericUpDownPlacementMode.InlineVertical;
12571257
}

maui/src/TextInputLayout/SfTextInputLayout.Properties.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,6 @@ bool IsPassowordToggleIconVisible
19931993
{
19941994
get { return (EnablePasswordVisibilityToggle && Content is Entry); }
19951995
}
1996-
19971996
#endregion
19981997

19991998
#region Property Changed Methods

maui/src/TextInputLayout/SfTextInputLayout.cs

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using Syncfusion.Maui.Toolkit.NumericEntry;
1313
using Syncfusion.Maui.Toolkit.EntryRenderer;
1414
using Syncfusion.Maui.Toolkit.EntryView;
15-
using Syncfusion.Maui.Toolkit.NumericUpDown;
1615

1716
namespace Syncfusion.Maui.Toolkit.TextInputLayout
1817
{
@@ -393,17 +392,12 @@ void UpDownButtonPressed(Point touchpoint)
393392
{
394393
if ((_downIconRectF.Contains(touchpoint) && IsUpDownVerticalAlignment) || (_upIconRectF.Contains(touchpoint) && !IsUpDownVerticalAlignment))
395394
{
396-
// Update the semantic description when the button is pressed
397-
SemanticProperties.SetDescription(this, "Up button pressed");
398-
numericEntry.UpButtonPressed();
395+
numericEntry.UpButtonPressed();
399396
}
400397
else if ((_upIconRectF.Contains(touchpoint) && IsUpDownVerticalAlignment) || (_downIconRectF.Contains(touchpoint) && !IsUpDownVerticalAlignment))
401398
{
402-
// Update the semantic description when the button is pressed
403-
SemanticProperties.SetDescription(this, "Down button pressed");
404-
numericEntry.DownButtonPressed();
399+
numericEntry.DownButtonPressed();
405400
}
406-
SemanticScreenReader.Announce(SemanticProperties.GetDescription(this));
407401
}
408402
#if IOS || MACCATALYST
409403
await Task.Delay(10);
@@ -419,10 +413,7 @@ void ClearText()
419413
{
420414
if (this.Content is ITextInputLayout numericEntry)
421415
{
422-
// Update the semantic description when the button is pressed
423-
SemanticProperties.SetDescription(this, "Clear button pressed");
424-
SemanticScreenReader.Announce(SemanticProperties.GetDescription(this));
425-
numericEntry.ClearIconPressed();
416+
numericEntry.ClearIconPressed();
426417
if (!IsClearIconVisible && _effectsRenderer != null && _effectsRenderer.HighlightBounds.Width > 0 && _effectsRenderer.HighlightBounds.Height > 0)
427418
{
428419
_effectsRenderer.RemoveHighlight();
@@ -716,7 +707,6 @@ protected override void OnContentChanged(object oldValue, object newValue)
716707
if (numericEntryContent.Children[0] is Entry numericInputView)
717708
{
718709
numericInputView.Opacity = IsHintFloated ? 1 : (DeviceInfo.Platform == DevicePlatform.iOS ? 0.00001 : 0);
719-
AutomationProperties.SetIsInAccessibleTree(numericInputView, false); // Exclude numeric entry view from accessibility.
720710
}
721711
}
722712
else if (newValue is Picker picker)
@@ -725,7 +715,6 @@ protected override void OnContentChanged(object oldValue, object newValue)
725715
{
726716
picker.Opacity = IsHintFloated ? 1 : (DeviceInfo.Platform == DevicePlatform.iOS ? 0.00001 : 0);
727717
}
728-
AutomationProperties.SetIsInAccessibleTree(picker, false); // Exclude picker from accessibility.
729718
}
730719

731720
base.OnContentChanged(oldValue, newValue);

0 commit comments

Comments
 (0)