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

fix(ratingMenu): use url in default template #4728

Merged
merged 1 commit into from
Apr 9, 2021
Merged

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Apr 8, 2021

Summary

this is the cause of the from time to time failing e2e test, basically sometimes the event.preventDefault didn't apply, which causes the page to refresh to / instead of the right url.

The actual url is url, and not in href, so this means that before now it always was wrong.

The docs are correct and use url: https://www.algolia.com/doc/api-reference/widgets/rating-menu/js/#templates

Result

url in ratingMenu now is actually correct, e2e tests will pass

this is the cause of the from time to time failing e2e test, basically sometimes the event.preventDefault didn't apply, which causes the page to refresh to / instead of the right url.

The actual url is `url`, and not in `href`, so this means that before now it always was wrong
@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 8, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 18825e2:

Sandbox Source
InstantSearch.js Configuration

@Haroenv Haroenv requested review from a team, tkrugg and francoischalifour and removed request for a team April 8, 2021 13:52
Copy link
Member

@francoischalifour francoischalifour left a comment

Choose a reason for hiding this comment

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

Good catch

@Haroenv Haroenv merged commit 31d9c50 into master Apr 9, 2021
@Haroenv Haroenv deleted the fix/rating-menu-url branch April 9, 2021 08:31
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