Skip to content

[Bug]: "false" popup placement due to select DOM-element #1038

Description

@geromequa

Bug description

The browser, understandably, renders the information popup relative the the select HTML element that has the required attribute. Tomselect makes this select element 0x0-sized and invisible. The tooltip is therefore placed height of select many pixels below the input field.

Image

Expected behavior

Tooltip is placed directly below input field, without height of select element affecting it.

Image

Steps to reproduce

  1. Go to https://tom-select.js.org/examples/validation/ -> Browser Defaults

  2. Click on Submit without selecting an entry from the dropdown

  3. See error: tooltip is placed right below select element with class tomselected ...

Additional context

  • OS: Linux Fedora
  • Browser: Firefox
  • Version [e.g. 22]
  • Device: Framework 13 13th Gen Intel i5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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