- Merge request !60Issue #3214515: Status messages added using JS are not dismissable โ (Closed) created by pcambra
- Merge request !142Issue #3214515: Status messages added using JS are not dismissable โ (Closed) created by dieterholvoet
- ๐บ๐ธUnited States pcate
I just ran into this issue myself. MR 142 failed patching with the latest version of the theme, so I think this needs a re-roll.
- Assigned to AditiVB
- Issue was unassigned.
- Assigned to bbruno
- Issue was unassigned.
- Status changed to Needs review
10 months ago 12:34pm 19 January 2024 - ๐ต๐นPortugal bbruno Poland
I re-rolled the last patch to apply to the latest dev. Please review.
- Status changed to Needs work
10 months ago 12:39pm 19 January 2024 - ๐ง๐ชBelgium dieterholvoet Brussels
This issue needed more than a re-roll, see #17.
- Status changed to Needs review
10 months ago 1:15pm 19 January 2024 - ๐ต๐นPortugal bbruno Poland
@DieterHolvoet Apologies I should've been more clear. I could not reproduce the problems in #17 and above with this new patch, based on the previously suggested one. Up for review to see if it fixes it for the rest.
- ๐จ๐ญSwitzerland saschaeggi Zurich
saschaeggi โ changed the visibility of the branch 3214515-merged-with-existing-library to hidden.
- ๐จ๐ญSwitzerland saschaeggi Zurich
New year, new approach ๐
This new approach should unify the markup of messages and also fix it in a future proof way so it will work with Drupal 11+ ๐
Needs final testing ๐ฏ
- ๐จ๐ญSwitzerland saschaeggi Zurich
Easy way to test this:
1. Add some messages via JS (can be done via the browser console):
const messages = new Drupal.Message(); const messageId = messages.add('test message'); messages.remove(messageId); messages.add('test message', {type: 'status'}); messages.add('test message', {type: 'warning'}); messages.add('test message', {type: 'error'});
2. Test regular messages, e.g. Save form, clear cache etc.
- Status changed to RTBC
6 months ago 9:16am 5 May 2024 - ๐ง๐ชBelgium dieterholvoet Brussels
Tested using the steps listed above and everything works as it should.
-
saschaeggi โ
committed 3eb8abc7 on 8.x-3.x
Resolve #3214515 "Js messages fix"
-
saschaeggi โ
committed 3eb8abc7 on 8.x-3.x
- Status changed to Fixed
6 months ago 10:18am 5 May 2024 - ๐จ๐ญSwitzerland saschaeggi Zurich
ยซGood things take timeยป sorry for the long wait here, but we finally have it fixed and in a way so it should be future proof ๐ค
Thanks everyone in participating here ๐
Automatically closed - issue fixed for 2 weeks with no activity.
Sorr,y in advance, if this reopens this issue.
I am still experiencing the error status message not able to close/hide as intended. When uploading a unsupported image file extension, the Error status message appears with the Hide text un-clickable (see attached image).
We are using the Gin theme version 8.x-3.0-rc13 and confirmed the MR #3214515 has been applied to our theme.