Allow attaching widgets to elements other than buttons

It seems we can only trigger the changelog widget from a button HTML element with the data data-featurebase-changelog.

It would be useful to be able to trigger and attach the widget to other HTML elements.

I saw the button tag is hard-coded in the SDK and it may work by updating
document.querySelectorAll("button[data-featurebase-changelog]");
to
document.querySelectorAll("[data-featurebase-changelog]");

Post type
-
What part?
-

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

Feedback & Roadmaps

Date

Over 1 year ago

Author

Dorian Becker

Subscribe to post

Get notified by email when there are changes.