Skip to content

Fix SfNumericEntry substring issue in iOS and MacCatalyst with VoiceOver and AllowNull.#325

Open
EGoverde wants to merge 1 commit intosyncfusion:mainfrom
EGoverde:main
Open

Fix SfNumericEntry substring issue in iOS and MacCatalyst with VoiceOver and AllowNull.#325
EGoverde wants to merge 1 commit intosyncfusion:mainfrom
EGoverde:main

Conversation

@EGoverde
Copy link

@EGoverde EGoverde commented Feb 3, 2026

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

After activating an entry in iOS with VoiceOver enabled, a crash occurs when entering a value. Text is initially selected and then gets deselected quickly - the crash is caused by the substring logic getting out-of-bound.
@PaulAndersonS
Copy link
Collaborator

Hi @EGoverde ,

Thanks for the contribution

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

2 participants