Disable text selection when entering text
Hi Support,
I want to use autocomplete control in a "search" mode, where the suggestions would be retrieved from the server based on user input. The problem is that autocomplete control automatically selects part of the text which matches one of the suggestions, and if a user keeps typing, it removes the selected part.
It looks like a bug on Android, as on Windows it doesn't do it. See attached video.
Attachment: screen_recordings_b47c12ef.zip
Hi Evgeny,
We’ve tested the Autocomplete control based on the scenario you described—where part of the text is automatically selected and removed as the user continues typing. However, we were unable to reproduce this behavior on our end. In our testing, the control functioned as expected without removing any part of the user input.
To assist you further, could you please provide the following:
- More details about your search and filter logic, if any.
- Steps to reproduce the issue.
- If you’re using a custom filter, please share the relevant code snippet or configuration.
This information will help us better understand the scenario and provide a more accurate solution.
For your reference, we’ve attached the sample we tested along with a video demo showing the expected behavior.
Best regards,
Arul Jenith B.
Attachment: SfAutoCompleteSampleAndVideo_47ffc3c0.zip
Hi Arul
I'm attaching a code sample and screen recording.
Evgeny
Attachment: SfAutoCompleteSampleAndVideo_2908_ac563fdb.zip
Hi Evgeny,
Thank you for the sample and output demo. We were able to replicate the reported query. Our team is currently investigating this issue and will explore further possibilities. We’ll provide you with an update by September 3rd, 2025. We appreciate your understanding and patience.
Regards,
Priyadharshni M
Hi Evgeny,
We apologize for the delay and appreciate your patience. Our team is actively investigating the issue and exploring additional possibilities. We’ll share an update with our findings by September 5th, 2025. Thank you for your continued understanding.
Regards,
Priyadharshni M
Hi Evgeny,
Thank you for your patience and continued support.
We’ve reviewed your query and were able to replicate the reported behavior. To resolve the issue where part of the text gets auto-selected and removed during typing, we recommend setting TextSearchMode="Contains" in the SfAutocomplete control. This helps prevent unwanted text selection and ensures smoother user input handling.
We’ve also shared a demo for your reference. If you have any further questions or need assistance, feel free to reach out — we’re happy to help!
Regards,
Priyadharshni M
Attachment: Demo_d50e3f1c.zip
Thanks for workaround.
Still, it looks like a bug on Android as on Windows this control doesn't auto select text. It would be nice to get it fixed to have a consistent behaviour.
Hi Evgeny,
Thanks for the details.
On Android, there can be a slight delay when fetching data and loading items. By default, the control performs type-to-select, which can trigger unintended selection during this loading window—this is the root cause of the reported issue.
Since you are using custom filtering, please continue with the provided workaround. When using a contains-based search, the text will not be auto-selected, which prevents the issue. We will review this behavior on Android and address it in the control.
Regards,
Manju D
- 7 Replies
- 4 Participants
-
EG Evgeny Gunko
- Aug 26, 2025 04:12 PM UTC
- Sep 8, 2025 09:50 AM UTC