Skip to content

[Bug]: Bootstrap 5 / Modal / DropdownParent #952

@K20

Description

@K20

Bug description

Hello,

Here's a codepen : https://codepen.io/kevinbransard/pen/MYKEmNR

When using tom select with dropdownParent: "body" to prevent menu overflow, with dropdown_input plugin, the menu doesn't open. It seems to loop here :

Image

Expected behavior

The menu is behind the BS5 modal (zindex in this case) and the focus is positioned on the dropdown input.

Steps to reproduce

See codepen : https://codepen.io/kevinbransard/pen/MYKEmNR

  1. Add a tom select in a modal (With dropdown_input, and dropdownParent set to body)
  2. Open the modal
  3. Open the select menu
  4. Error : menu is behind and not focused

Additional context

N/A

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