Skip to content

When using the LabelSelect() inside a Modal(), selection dismisses the modal. #164

Description

@YnotProgramInSwift

When using the LabelSelect() inside a Modal(), selection of an option from the drop down list appears to dismiss the modal. This appears to be a UI issue only - there doesn't appear to be any server calls on selection.

def get_user_modal(session): 
        return Modal(
            Form(
                LabelInput("First Name", id="first_name"),
                LabelInput("Last Name", id="last_name"),
                LabelSelect(
                    Option("Primary User", "primary_user"),
                    Option("Secondary User", "secondary_user"),
                    id="user_type"
                ),
                cls="space-y-4",
            ),
            header=ModalTitle("Add New User"),
            footer=ModalFooter(
                    ModalCloseButton(),
            ),
            hx_open=True,
            uk_modal="bg-close: false; esc-close: false; stack: true; bg-close-esc: false"
        )

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