pinterest / widgets

JavaScript widgets, including the Pin It button.
Other
210 stars 88 forks source link

Arbitrary button node structure (deeper than 1 level) #110

Closed max-morawski-photo closed 1 year ago

max-morawski-photo commented 1 year ago

Simple change to enable share buttons with a structure deeper than 1 level currently supported. My use case is:

<a data-pin-do="buttonBookmark" data-pin-custom="true" ..>
  <div ..>
    <svg ..>
      ..
    </svg>
  </div>
</a>

In this case, click events go to the node and the stock Pinterest code does not work as expected.