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

fix: reset input on init so default value is displayed #3881

Merged
merged 4 commits into from
Jan 21, 2024

Conversation

coder2000
Copy link
Contributor

Currently when setting a default value for the combobox it isn't displayed right away. You would have to open and close it before the display value would be visible. This will reset the input as part of the init so the value is displayed right away.

@coder2000
Copy link
Contributor Author

Sorry. My editor has some defaults that are different than the codebase that I didn't notice until I opened the PR.

@bakerkretzmar
Copy link

@coder2000 can you revert your formatting changes so it's possible to review this? This bug has been killing me but it took me forever to figure out what actually changed in this PR.

@coder2000
Copy link
Contributor Author

@coder2000 can you revert your formatting changes so it's possible to review this? This bug has been killing me but it took me forever to figure out what actually changed in this PR.

Done.

@calebporzio
Copy link
Collaborator

fixed and added tests, thanks!

@calebporzio calebporzio merged commit ae16eb3 into alpinejs:main Jan 21, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants