Skip to content

Flowbite-4 Modal component documentation and data-modal-target trigger #3742

Description

@jraller

Opening the documentation for the Flowbite-4 Modal at https://ux.symfony.com/toolkit/kits/flowbite-4/components/modal and using the browser's developer console it is possible to see several errors regarding the Modal:Trigger component line 4 where the value for data-modal-target is hard coded to trigger. The message is "Modal with id trigger does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?"

There is also a second error message for each modal indicating that "Modal with id modal does not exist." This appears to trace to the Modal:Content component line 11 where the value for data-modal-target is hard coded to modal.

Using the documentation and going to the Static modal example, clicking on "Decline" closes the modal, but "I accept" is not wrapped in a close. This occurs also with the Pop-up modal and Opened by default examples as well. In these examples either wrapping the first button in the same Modal:Close component, or demonstrating an alternative method with JavaScript that triggers the close from those buttons and has a place to trigger the additional action would be helpful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions