-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
DataHub bar now global across site with search rendering conditionally. Backbutton navigation solved with simpler nvigation logic. Resolves #280