tom-select icon indicating copy to clipboard operation
tom-select copied to clipboard

Having two or more selects and programmatically focusing two after each other > DropDowns go crazy

Open torbonaut opened this issue 2 years ago • 2 comments

To reproduce the bug issue, just have two selects and call the focus() method on each

JsFiddle

Expected behavior:

  • focus first select and show dropdown
  • then focus second select and show dropdown

Additional context:

<html>
  <head>
    <title>Tom Select HTML Test</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <link
      href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/tom-select.css" rel="stylesheet" />
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/tom-select.complete.min.js"></script>
  </head>
  <body>
      <select id="tom-select-1">
        <option value="1">One</option>
        <option value="2">Two</option>
      </select>
      <select id="tom-select-2">
        <option value="1">One</option>
        <option value="2">Two</option>
      </select>
    <script>
      let select1 = new TomSelect("#tom-select-1", {});
      let select2 = new TomSelect("#tom-select-2", {});
      select1.focus();
      select2.focus();
    </script>
  </body>
</html>

torbonaut avatar Aug 09 '23 09:08 torbonaut

got same issue. Is this library maintained ?

acantepie avatar Oct 09 '23 11:10 acantepie

This issue has not been active in 120 days and has been marked "stale". Remove stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Feb 17 '24 01:02 github-actions[bot]