Skip to content

[Bug]: Failed to execute 'querySelector' on 'Document': '[object HTMLSelectElement]' is not a valid selector #951

Description

@gabriel-site123

Bug description

Hey,
Generating select box from parent frame throws js error
Failed to execute 'querySelector' on 'Document': '[object HTMLSelectElement]' is not a valid selector
and tom select fails to convert the select box.

From my investigation it seems like this fails because of this:

Image

Here is reproduction for the bug:

81a9b6496872949d429077c0a1098027.mp4

Expected behavior

Convert the select box

Steps to reproduce

Go to this fiddle and click on Inject Content With Bug
https://jsfiddle.net/gabrielSite123/4so93j0q/39/

Additional context

  • OS: Macos Tahoe 26.0.1
  • Browser: Chrome
  • Version: 141.0.7390.66
  • Device: Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions