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

Deleting all items changes vertical size of form-control-sm

Open Sobotkama opened this issue 2 years ago • 7 comments

Describe the bug When using theme bootstrap 5 and the select has class form-control-sm, the entire select grows vertically when all items are deleted.

To Reproduce

  1. Go to https://tom-select.js.org/examples/styling/
  2. Select theme Bootstrap 5
  3. Delete all the items in the form-control-sm or form-control-sm (single) example on the right
  4. The select's height increases

Expected behavior The select's height stays the same when

Additional context Add any other context about the problem here.

  • OS: Windows
  • Browser chrome v106, firefox
  • Version 2.2.2

Sobotkama avatar Oct 18 '22 11:10 Sobotkama

I have just noticed the same. Also when single select is used, the selected item is not vertically centered, see the attached screenshot from Chrome 106 @ Windows 10. First part shows the bug from first post, on second line you can see the incorrect alignment.

obrazek

zipper avatar Oct 21 '22 14:10 zipper

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 Nov 14 '23 02:11 github-actions[bot]

This issue is still relevant

Sobotkama avatar Nov 15 '23 09:11 Sobotkama

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 Mar 16 '24 01:03 github-actions[bot]

Still relevant

zipper avatar Mar 27 '24 17:03 zipper

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 Jul 26 '24 02:07 github-actions[bot]

Still relevant

Sobotkama avatar Jul 26 '24 08:07 Sobotkama