Skip to content

Comments

fix(components): Fix Autocomplete Single Char Delete Issue#2917

Open
ZakaryH wants to merge 1 commit intomasterfrom
fix-autocomplete-clearing-issue
Open

fix(components): Fix Autocomplete Single Char Delete Issue#2917
ZakaryH wants to merge 1 commit intomasterfrom
fix-autocomplete-clearing-issue

Conversation

@ZakaryH
Copy link
Contributor

@ZakaryH ZakaryH commented Feb 18, 2026

Motivations

while looking into another issue I noticed that Autocomplete was misbehaving when I deleted characters one by one rather than clearing all with a select-all and delete

Changes

Added

Changed

Deprecated

Removed

Fixed

also cancel the debounced setter so that when we are removing characters, it's both instantaneous and doesn't get stuck in an invalid state where the UI is empty but our debounce sets the filter value to be the last character we had, resulting in a filtered list that doesn't make sense visually

Security

Testing

pretty straightforward. with a debounce, the default is fine, type something - then delete the characters with consecutive backspaces. on master you'll see that the list becomes filtered. on this branch, it should correctly return to the default, unfiltered state.

the test I wrote was failing, so you can try that against master - and then see that it now passes!

Changes can be
tested via Pre-release


In Atlantis we use Github's built in pull request reviews.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 18, 2026

Deploying atlantis with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8aecc8b
Status: ✅  Deploy successful!
Preview URL: https://5a40cefa.atlantis.pages.dev
Branch Preview URL: https://fix-autocomplete-clearing-is.atlantis.pages.dev

View logs

@ZakaryH ZakaryH marked this pull request as ready for review February 18, 2026 18:21
@ZakaryH ZakaryH requested a review from a team as a code owner February 18, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant