Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
warjohn123 opened this issue Sep 5, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@warjohn123
Copy link

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 warjohn123 added the bug Something isn't working label Sep 5, 2023
@warjohn123 warjohn123 changed the title [BUG] [BUG] AdminPortal.show() won't open admin box at first time, but it does on the second time Sep 5, 2023
@warjohn123
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants