-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix strange UI behavior of cancelling dismiss review modal (#25133) #25147
Conversation
…25133) Fixes go-gitea#25130 The old code uses `$(this).next()` to get `dismiss-review-modal`. At first, it will get `$(#dismiss-review-modal)`, but the next time it will get `$(#dismiss-review-modal).next();` and then `$(#dismiss-review-modal).next().next();`. Because div `dismiss-review-modal` will be removed when `dismiss-review-btn` clicked. Maybe the right usage is adding `show-modal` class and `data-modal` attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding blocked review so this doesn't get accidentally merged. feel free to dismiss this review as needed
Blocked because of #25133 (comment). Once the fix is available, we can still merge this and then backport the fix. |
Merge this before the backport of #25162 |
#25172 contains this backport. |
Backport #25133 by @yp05327
Fixes #25130
The old code uses
$(this).next()
to getdismiss-review-modal
.At first, it will get
$(#dismiss-review-modal)
, but the next time it will get$(#dismiss-review-modal).next();
and then
$(#dismiss-review-modal).next().next();
.Because div
dismiss-review-modal
will be removed whendismiss-review-btn
clicked.Maybe the right usage is adding
show-modal
class anddata-modal
attribute.