markbind icon indicating copy to clipboard operation
markbind copied to clipboard

Modals do not close after clicking an in-page link

Open yyccbb opened this issue 9 months ago • 1 comments

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

No response

Tell us about your environment

Windows 11, MacOS 15

MarkBind version

5.6.0

Describe the bug and the steps to reproduce it

https://markbind.org/devdocs/devGuide/development/workflow.html#general-tips Image After clicking the "below" link, the modal does not close in the foreground and the page moves to the correct anchor in the background.

Expected behavior

The modal should close.

Anything else?

No response

yyccbb avatar Mar 17 '25 05:03 yyccbb

Interesting observation. I just tested this behavior in Material UI and it does seem to also have this "bug". I think the behavior is somewhat expected because you are still on the same page and there shouldn't be any expectation that clicking on a link (or in fact anywhere within the modal) will close the modal.

I think I'll put this as low priority, probably wont-fix.

https://github.com/user-attachments/assets/9528d795-0073-4a0e-a4ba-648712440cfb

tlylt avatar Mar 17 '25 15:03 tlylt