Skip to content

[Bug] Widget alert - Closing button not working #45

@iSteuding

Description

@iSteuding

Bug report

What I did

I have created an info widget that should be closable, see:

Widget::add([
    'type' => 'alert',
    'content' => 'Alert with close button in theme coreuiv2 package version 1.2.8',
    'close_button' => true,
])->to('before_content');

What I expected to happen

An information box appears on my page that can be closed with a button displayed at the top right of the box.

What happened

An information box appears on my page that cannot be closed with an unstyled button at the top left that doesn't work.

Image

What I've already tried to fix it

I have installed and tested other themes, and on these (Tabler, CoreUIv4), the info box is created and works as intended.

Context to replicate the bug - Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

### PHP VERSION:
8.2.26

### PHP EXTENSIONS:
Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, imagick, intl, ldap, exif, mysqli, odbc, pdo_dblib, pdo_mysql, PDO_ODBC, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache, xdebug

### LARAVEL VERSION:
11.46.1.0

### BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.3.9
backpack/crud: 6.8.6
backpack/generators: v4.0.7
backpack/logmanager: 5.0.3
backpack/permissionmanager: 7.2.2
backpack/pro: 2.2.36
backpack/theme-coreuiv2: 1.2.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions