-
Couldn't load subscription status.
- Fork 8
CASH-1101: Disable hover temporarily after detailed panel is triggered #1036
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
Conversation
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
| }, | ||
| hoverCardLargeUpdateDetailedLoanIndex() { | ||
| if (!this.rowHasDetailedLoan) { | ||
| this.$emit('set-prevent-updating-detailed-card', true); |
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.
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); |
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.
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(); |
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.
Interaction 2B: User explicitly clicks on a neighboring loan
- This re-enables the mouseenter behavior
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.
Nice! This will solve a couple of odd outcomes we were seeing.
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: