fix: flash message icons not displaying properly
- Add specific case for 'info' flash message type in flash_icon helper - Initialize Lucide icons when flash message controller connects - Ensures icons render correctly with Turbo navigation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -6,10 +6,15 @@ export default class extends Controller {
|
||||
connect() {
|
||||
console.log("FlashMessageController mounted", this.element);
|
||||
|
||||
// Auto-dismiss after 5 seconds
|
||||
// Initialize Lucide icons for this element
|
||||
if (typeof lucide !== 'undefined') {
|
||||
lucide.createIcons({ within: this.element });
|
||||
}
|
||||
|
||||
// Auto-dismiss after 2 seconds
|
||||
this.timeout = setTimeout(() => {
|
||||
this.close()
|
||||
}, 5000)
|
||||
}, 2000)
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
|
||||
Reference in New Issue
Block a user