Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Can't set up empty option as default value (with temporary solution) #43

Open
mikbox74 opened this issue Jun 2, 2018 · 1 comment
Open

Comments

@mikbox74
Copy link

mikbox74 commented Jun 2, 2018

Hello, thank you for this great thing!
I tried to add empty default value and can not did it. May be the reason is my customization: I used complex array and some markup to build options.
So I find the temporary solution and the widget works properly now:

https://gist.github.com/mikbox74/9bf813c3b5b5550205daa7a080eec6cd#file-selctize-php-L39

I hope the gist helps you to improve the widget.

@mtangoo
Copy link

mtangoo commented Jun 8, 2018

In addition to adding empty value, you need to set Placeholder in options

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants