#8205 closed defect (bug) (fixed)
Submission Slug change modal instantly closes
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | Plugin Directory | Keywords: | has-patch |
| Cc: |
Description
As reported to plugins@:
Just a heads-up: while submitting a new plugin today, we noticed the "change" link for the slug field opens a modal that immediately closes before it can be used. We reproduced it in both Chrome and Safari.
We were able to work around it with a quick console command
(setTimeout(() => { document.querySelector('dialog').showModal() }, 100))but wanted to flag it in case it's not on your radar.
Change History (3)
Note: See
TracTickets for help on using
tickets.
## Summary
Fixes Meta Trac #8205.
href="#"with an inlineonclickto callshowModal(), but the defaulthref="#"navigation was not prevented, causing the dialog to close immediately after opening.event.preventDefault()to the onclick handler to stop the hash navigation.## Test plan
🤖 Generated with Claude Code