Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(search-box): add loading indicator + showLoadingIndicator prop #962

Merged
merged 2 commits into from
Aug 12, 2022

Conversation

aymeric-giraudet
Copy link
Member

Summary

Work Item : FX-377

To stay as close as InstantSearch.js's interface as possible, we decided to add a showLoadingIndicator prop which is true by default.
The only difference is that we are not able to provide a custom component, which is not feasible for submit/reset buttons anyway.

Result

By default, when search is stalled, the reset button will be hidden, and a loading indicator is shown.
If showLoadingIndicator is set to false, it will never show a loading indicator, and the reset button will still be present if search is stalled.

@netlify
Copy link

netlify bot commented Aug 10, 2022

Deploy Preview for angular-instantsearch ready!

Name Link
🔨 Latest commit f2ba627
🔍 Latest deploy log https://app.netlify.com/sites/angular-instantsearch/deploys/62f3d498fbeb9700096d3298
😎 Deploy Preview https://deploy-preview-962--angular-instantsearch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@dhayab dhayab left a comment

Choose a reason for hiding this comment

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

That's great, thank you!

@aymeric-giraudet aymeric-giraudet merged commit cef0b75 into master Aug 12, 2022
@aymeric-giraudet aymeric-giraudet deleted the feat/show-loading-indicator branch August 12, 2022 14:44
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.

None yet

2 participants