tom-select
tom-select copied to clipboard
Having two or more selects and programmatically focusing two after each other > DropDowns go crazy
To reproduce the bug issue, just have two selects and call the focus() method on each
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>
got same issue. Is this library maintained ?
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