-
-
Notifications
You must be signed in to change notification settings - Fork 613
Open
Labels
Description
Bug description
When I try to create a disabled button with a Blade template for a widget, the button stays enabled.
How to reproduce
Create a blade-based widget with php please make:widget Blade --blade and add this widget to config/statamic/cp.php.
Edit the resources/views/widgets/blade.blade.php file to add a disabled button.
<ui-widget title="Blade">
<div class="px-4 py-3">
<p>👋 {{ $message }}!</p>
<ui-button href="https://example.org" disabled>Example</ui-button>
</div>
</ui-widget>
Observe on the dashboard that the resulting widget still has an active button.
Environment
Environment
Application Name: Statamic
Laravel Version: 12.51.0
PHP Version: 8.3.30
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
URL: /
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 3
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.3.2 Solo
Statamic Addons
alt-design/alt-redirect: 1.7.0
statamic/ssg: 4.0.0
tenseg/barnacle: 0.2.0Additional details
Discussed on Discord as well.
Reactions are currently unavailable