Skip to content

Conversation

@ksekhri
Copy link
Contributor

@ksekhri ksekhri commented Jul 24, 2019

Now when users click a HoverLoanCard to expand the DetailedLoanCard, they will no longer page through loans on mouseover until they first interact with either the DetailedLoanCard or explicitly click on a neighboring card.

Note: This new behavior was QA'd by Adam. Tested on tablet/mobile.

Fixes:

  • Tapping on image in small hover card on mobile no longer triggers page redirection

Now when users click a HoverLoanCard to expand the DetailedLoanCard, they will no longer page through loans on mouseover until they first interact with either the DetailedLoanCard or explicitly click on a neighboring card.

Fixes:
* Tapping on image in small hover card on mobile no longer triggers page redirection
@ksekhri ksekhri requested a review from mcstover July 24, 2019 21:55
},
hoverCardLargeUpdateDetailedLoanIndex() {
if (!this.rowHasDetailedLoan) {
this.$emit('set-prevent-updating-detailed-card', true);
Copy link
Contributor Author

@ksekhri ksekhri Jul 24, 2019

Choose a reason for hiding this comment

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

Interaction 1: User clicks on Image or Read more inside HoverLoanCardLarge

  • This stops the mouseenter behavior of changing which loan is detailed

},
handleMouseLeave() {
this.hoverLoanIndex = null;
this.setPreventUpdatingDetailedCard(false);
Copy link
Contributor Author

@ksekhri ksekhri Jul 24, 2019

Choose a reason for hiding this comment

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

Interaction 2A: User exits the row (entering the DetailedLoanCard)

  • This re-enables the mouseenter behavior

},
hoverCardSmallUpdateDetailedLoanIndex() {
this.$emit('set-prevent-updating-detailed-card', false);
this.updateDetailedLoanIndex();
Copy link
Contributor Author

@ksekhri ksekhri Jul 24, 2019

Choose a reason for hiding this comment

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

Interaction 2B: User explicitly clicks on a neighboring loan

  • This re-enables the mouseenter behavior

Copy link
Collaborator

@mcstover mcstover left a comment

Choose a reason for hiding this comment

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

Nice! This will solve a couple of odd outcomes we were seeing.

@ksekhri ksekhri merged commit 32eb6e0 into master Jul 24, 2019
@ksekhri ksekhri deleted the CASH-1101 branch July 24, 2019 23:09
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.

2 participants