FastComments / fastcomments-react

A React component for FastComments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add API to open user profile programmatically

wladikpasika opened this issue · comments

Is your feature request related to a problem? Please describe.
We couldn't figure out how to open a user profile programmatically. For instance by clicking on a button outside the Iframe.

Describe the solution you'd like
Implement API, that can solve the issue - maybe some callback or item that we can add to the react component.

Additional context
Add any other context or screenshots about the feature request here.
Screenshot 2023-09-03 at 15 40 20
Screenshot 2023-09-03 at 15 43 13

@wladikpasika Yeah, there is no way today. Will take a look.

@wladikpasika I've added an example in master: 4ee4c47#diff-5149ca27915951c718099311594f43508ce00a3e6dad9cfcc58a2c1faebcfa1dR17

But there are some bugs. Will have a follow update and new version soon.

@winrid Thanks for the example!

@wladikpasika 3.1.0 now has a functional example of this ask. Verified works as intended. Closing.