frontegg-react icon indicating copy to clipboard operation
frontegg-react copied to clipboard

[BUG] AdminPortal.show() won't open admin box at first time, but it does on the second time

Open warjohn123 opened this issue 2 years ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

AdminPortal.show() doesn't pop up the admin-box at first click, but it does on the second click. I'm also getting a warning from history.ts

You are trying to block a POP navigation to a location that was not created by @remix-run/router. The block will fail silently in production, but in general you should do all navigation with the router (instead of using window.history.pushState directly) to avoid this situation.

To Reproduce Steps to reproduce the behavior:

  1. Create a button
  2. Embed AdminPortal.show on button click
  3. Click the button. At first, it won't pop up the admin box.
  4. Click the button again for the second time. This time it opens the admin box

Expected behavior A clear and concise description of what you expected to happen.

It should open the admin box at first click

Screenshots If applicable, add screenshots to help explain your problem. Screen Shot 2023-09-05 at 9 33 16 AM

Additional context Add any other context about the problem here.

warjohn123 avatar Sep 05 '23 01:09 warjohn123

Already updated sdk to 6.0.37 but it still does not work. Help?

warjohn123 avatar Jun 04 '24 13:06 warjohn123