Arbitrary button node structure (deeper than 1 level)#111
Open
max-morawski-photo wants to merge 1 commit intopinterest:masterfrom
Open
Arbitrary button node structure (deeper than 1 level)#111max-morawski-photo wants to merge 1 commit intopinterest:masterfrom
max-morawski-photo wants to merge 1 commit intopinterest:masterfrom
Conversation
Contributor
|
Hi, sorry for dead air here. I'm no longer at Pinterest and (since I was the only one monitoring this repo) I doubt a reply will be forthcoming. Your change seems reasonable to me, although I would probably recommend a |
joselolo231
approved these changes
Nov 20, 2023
| if (el) { | ||
| log = $.f.getData(el, "log"); | ||
| // custom buttons with child nodes may not pass clicks; check one level up | ||
| if (!log && el.parentNode) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Simple change to enable share buttons with a structure deeper than 1 level currently supported. My use case is:
In this case, click events go to the node and the stock Pinterest code does not work as expected.