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

Refactored BackButton to navigate properly, refactored navbar #281

Merged
merged 6 commits into from
Sep 25, 2020

Conversation

ctrepka
Copy link

@ctrepka ctrepka commented Sep 24, 2020

DataHub bar now global across site with search rendering conditionally. Backbutton navigation solved with simpler nvigation logic. Resolves #280

Marlboro Blend No. 27 and others added 2 commits August 31, 2020 13:21
DataHub bar now global across site with search rendering conditionally. Backbutton navigation solved with simpler nvigation logic. Resolves #280
OnComponentWillUnmount still clear selectedCollection from store in Historical Imagery Component. Removed this lifecycle to keep selectedCollection so that backButton can use this prop to navigate  back from cart.
Roll back to change only back button and cart link
@@ -624,7 +634,7 @@ class OrderTnrisDataForm extends Component {
This dataset is already in the shopping cart.
</p>
<p className="mdc-typography--body2">
Please visit the shopping cart to finalize your order.
Please visit the <button style={{color: '#1E8DC1'}} className="mdc-button" onClick={this.handleOrderCartView}>shopping cart</button> to finalize your order.
Copy link
Contributor

Choose a reason for hiding this comment

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

I am seeing this warning in the console when I click the text to navigate to the cart: submission canceled because the form is not connected

I think the browser is defaulting the button to type="submit" since its type hasn't been declared implicitly and it is in a form.
https://www.w3schools.com/tags/att_button_type.asp

add the attributetype="button" to the button element to prevent this warning on click

Link button to cart after ordering collection resulted in an error on click. Issue resolved by adding type='button' to button attributes.
Copy link
Contributor

@JasonKleinert JasonKleinert left a comment

Choose a reason for hiding this comment

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

All code changes and testing in the browser look good. Going ahead with the merge.

@JasonKleinert JasonKleinert changed the base branch from master to develop September 25, 2020 19:33
@JasonKleinert JasonKleinert merged commit 1ff3216 into develop Sep 25, 2020
@JasonKleinert JasonKleinert deleted the feature/header-navigation branch September 25, 2020 19:45
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.

Improve user access to Shopping Cart once an item has been ordered from collection view (UX)
2 participants