Error message displaying "Hide" but no action

Created on 21 October 2024, 25 days ago

Problem/Motivation

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)

Steps to reproduce

When uploading a non-.svg or .png formatted image (i.e. jpeg), an error message pops up with a Hide text. The Hide text is not clickable or has any action.

🐛 Bug report
Status

Active

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @chadwickked
  • 🇨🇭Switzerland saschaeggi Zurich

    It looks like the library and CSS styles do not get loaded in your example (hence the unstyled Hide button. What module are you using? Is it displaying a core message (instance of core/drupal.message)?

    If that's the case we'll need the steps how to reproduce this issue, as I tested this quickly with regular/ajax messages and can't reproduce it so far. Also it might not work as expected in a sub theme of Gin.

  • Hi @saschaeggi, thanks for the reply. Sorry in advance for my naivety.

    I'm using the Config Pages module. It looks like it's not using the core message? The error message isn't using the Gin theme as expected according to the code.

    I'm see that the error message displaying "The file could not be uploaded" (see attached image) is coming from web/core/modules/file/file.module. Not sure if it's something in there.

    We are using a sub theme of Gin, could that possible be the reason why it's not working?

Production build 0.71.5 2024