Skip to content

Use popperJS / teleport / vue-portal to render option list in modals #133

@Finrod927

Description

@Finrod927

When using multiselect in a modal, the option list is rendered in the modal, and if the modal body is not high enough, it forces the user to scroll the modal body to see the option list, which is not user-friendly.

I saw the option openDirection but I have some modals with dynamic height, and always openning the list to the top is not ideal.

With teleport (vue3) and portal-vue (vue2), you could add an option appendTo that will allow us to choose where to render the option list (for instance, in the body when used in a modal).

Edit: PopperJS may be a better solution as it also do all the positionning

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions