Skip to content

[Bug]: Notifications appear glitchy when Knowledge Base modal links feature is enabled #82

@andrewdwallo

Description

@andrewdwallo

What happened?

Description

When the Knowledge Base plugin’s modal links feature is enabled, notifications in our Filament app (such as validation errors) appear glitchy or stutter visually. This happens even though no modals visibly close in the UI. Upon investigation, we noticed that a close-modal event is being dispatched for the Knowledge Base plugin’s modal whenever a notification is triggered elsewhere in the app.

Disabling the modal links feature immediately resolves the glitch and notifications display smoothly.

Steps to reproduce:

  1. Enable the modal links feature in the Knowledge Base plugin.
  2. Open a standard Filament modal (e.g., a form modal).
  3. Trigger a notification (such as a validation error).
  4. Observe that the notification appears glitchy or stutters, and a close-modal event is dispatched for the Knowledge Base modal (can be seen in the network tab or via event listeners).
  5. Disable the modal links feature and repeat—notifications display smoothly and the event is no longer dispatched.

Expected behavior:
Notifications should display smoothly and not be affected by the Knowledge Base plugin’s modal links feature.

Additional context:

  • The glitch only occurs when the modal links feature is enabled.
  • Disabling the feature resolves the issue.
  • The close-modal event is being dispatched for the Knowledge Base modal when notifications are triggered, even though no modals are visibly closing.

How to reproduce the bug

  1. Enable the modal links feature in the Knowledge Base plugin.
  2. Open a standard Filament modal (e.g., a form modal).
  3. Trigger a notification (such as a validation error).
  4. Observe that the notification appears glitchy or stutters, and a close-modal event is dispatched for the Knowledge Base modal (can be seen in the network tab or via event listeners).
  5. Disable the modal links feature and repeat—notifications display smoothly and the event is no longer dispatched.

Package Version

1.13.0

PHP Version

8.2

Laravel Version

11

Which operating systems does with happen with?

macOS

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions