Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: alignment issue when selecting and deselecting items #712

Closed
lovasoa opened this issue Apr 14, 2024 · 4 comments
Closed

[Bug]: alignment issue when selecting and deselecting items #712

lovasoa opened this issue Apr 14, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@lovasoa
Copy link

lovasoa commented Apr 14, 2024

Bug description

When selecting an item with ctrl+click, the 1px grey border around it disappears, which makes the entire list of options jump by 2px

image
image

Expected behavior

selecting an option shouldn't change the position of other options

Steps to reproduce

  1. In a multiselect, select two options
  2. click on the first one to make it become blue
  3. expected result: the other option doesn't move
  4. actual result: the other option moves by 2px because the border around the first one disappeared

Additional context

  • OS: all
  • Browser all
  • Version latest (2.3.1)
  • Device: all

found while trying to integrate TomSelect with SQLPage

@lovasoa lovasoa added the bug Something isn't working label Apr 14, 2024
lovasoa added a commit to lovasoa/tom-select that referenced this issue Apr 14, 2024
@lovasoa lovasoa mentioned this issue Apr 14, 2024
Copy link

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 github-actions bot added the stale No activity label Aug 13, 2024
@lovasoa
Copy link
Author

lovasoa commented Aug 13, 2024

still a problem

@github-actions github-actions bot removed the stale No activity label Aug 14, 2024
@nwalters512
Copy link
Contributor

@lovasoa I think the border here might be coming from either your own CSS or another project. Your screenshot shows var(--tblr-...) for some CSS property values, which isn't coming from this library. I also can't see the border on https://tom-select.js.org/examples/, nor can I reproduce any layout shifting when following your instructions. Could you provide an isolated reproduction, ideally with one of the examples on the docs site?

@nwalters512
Copy link
Contributor

Per a comment on #713, it seems like this may indeed have been an issue with third-party conflicting styles.

@nwalters512 nwalters512 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants