Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(autocomplete): always hide the progressbar when clearing the input #8341

Closed

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented May 4, 2016

Fixes #8301, #8195.

@crisbeto crisbeto added the needs: review This PR is waiting on review from the team label May 4, 2016
// Set the loading to true so we don't see flashes of content.
// The flashing will only occour when an async request is running.
// So the loading process will stop when the results had been retrieved.
setLoading(true);
Copy link
Member

Choose a reason for hiding this comment

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

@crisbeto Those flashes are appearing, when asynchronously querying. I actually wasn't the guy who introduced this fix, but it seems reasonable for me.

We should keep that, and set the loading to false, once the results are fetched successfully.
Everything works fine, when caching is disabled, so the issue is, that we're resetting the loading, when the results were already cached.

To fix the issue, we simply need to reset the loading here

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you, I'll rework it.

@crisbeto crisbeto added needs: work and removed needs: review This PR is waiting on review from the team labels May 5, 2016
@crisbeto crisbeto force-pushed the fix/autocomplete-progress-again branch from fbff3d0 to 29e620a Compare May 5, 2016 12:56
@crisbeto crisbeto added needs: review This PR is waiting on review from the team and removed needs: work labels May 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants