-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix: Currency list token buttons mobile #12493
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
base: develop
Are you sure you want to change the base?
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
8 Skipped Deployments
|
977fb04 to
2ca0d74
Compare
2ca0d74 to
c0748b4
Compare
| }, [trigger, targetElement, hideTooltip, showTooltip, manualVisible, tooltipElement, debouncedHide]); | ||
|
|
||
| // no longer need the extra useeffect | ||
| const toggleTooltip = useCallback( |
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.
if it is in mobile and button / a make tooltip visible, it will do stopPropagation on the first click to show the tooltip only without action. otherwise existing logic will be applied
| showActions, | ||
| }: { | ||
| selectedCurrency: Currency | ||
| isSelected: boolean |
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.
isSelected not used
9504e84 to
c643e7b
Compare
c643e7b to
bf29d2a
Compare
bf29d2a to
ed3eed3
Compare
PR-Codex overview
This PR focuses on improving the user experience and functionality of tooltip behavior and UI components in the application. It includes enhancements in event handling and minor adjustments to component props.
Detailed summary
onClickandonTouchStartevent handlers to theViewOnExplorerButtonto stop event propagation.toggleTooltiplogic to handle clickable children elements.useEffectrelated to tooltip visibility.ComplementSectioncomponent by removingisSelectedprop.defaultTooltipMessageinComplementSectionbased on mobile detection.onClickprop inCurrencyRowto beundefinedwhenisSelectedis true.ComplementSectionusage inCurrencyRowto remove theisSelectedprop.