Skip to content

Fix: SfNumericEntry substring issue in iOS and MacCatalyst with VoiceOver and AllowNull#354

Merged
PaulAndersonS merged 1 commit into
mainfrom
Resolved_NumericEntry_Substring_issue
May 6, 2026
Merged

Fix: SfNumericEntry substring issue in iOS and MacCatalyst with VoiceOver and AllowNull#354
PaulAndersonS merged 1 commit into
mainfrom
Resolved_NumericEntry_Substring_issue

Conversation

@TameemAnsari-SF4702
Copy link
Copy Markdown
Collaborator

This PR introduces a check on the validity of a SubString range before returning, fixing an ArgumentOutOfRangeException where these values do not correctly reflect the situation.

Root Cause of the Issue

In VoiceOver the text gets automatically deselected shortly after activating. The corresponding SelectionLength is not updated correctly. When this value is then used for a substring a crash occurs, as it becomes out-of-bound.

Description of Change

A check to ensure the substring value is within range. If not an empty string is returned, which is then handled by existing logic.

Issues Fixed

Fixes #324

Copy link
Copy Markdown
Collaborator

@Chozarajan-P Chozarajan-P left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are fine

@PaulAndersonS PaulAndersonS added this to the v1.0.10 milestone May 6, 2026
@PaulAndersonS PaulAndersonS merged commit cd80b1c into main May 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SfNumericEntry causes ArgumentOutOfRangeException with VoiceOver

3 participants