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]: Basic dropdown select without enabling the search option #677

Open
sinjuangajan opened this issue Jan 6, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@sinjuangajan
Copy link

sinjuangajan commented Jan 6, 2024

Bug description

Can I create a basic dropdown without enabling the search option? I have only a limited number of options in my dropdown select, and the design gets messed up when I select an option. Are there any solutions?

tom-select

Expected behavior

Basic select should have a search disable option.

Steps to reproduce

Basic documentation

Additional context

OS: Windows 11
Browser: any

@sinjuangajan sinjuangajan added the bug Something isn't working label Jan 6, 2024
@sinjuangajan sinjuangajan changed the title [Bug]: [Bug]: Basic dropdown select without enabling the search option Jan 6, 2024
@aloayzab88
Copy link

Did you find a way to disable search?

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 23, 2024
@gduprey
Copy link

gduprey commented Sep 6, 2024

If you don't want a filter input, just set the "controlInput:" option to null. You may have to add some css to set the div.ts-wrapper to have a min-width and the div.ts-control to have a min-height so they don't collapse into nothing when empty.

I did this and it's working well (only thing I seem to be missing is a way to put a placeholder text in there when there are no items selected)

@github-actions github-actions bot removed the stale No activity label Sep 7, 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

3 participants