Skip to content

Conversation

@giuse88
Copy link

@giuse88 giuse88 commented May 22, 2015

Hi,

This PR enables the add custom field feature despite the number of the filter options. In addition, it moves the Add new value? as first option in case the list of possible options is big. It mimics the behaviour of selectize.js.

This GIF shows the new behaviour:
znlsaffc6v

@dcousens
Copy link
Collaborator

Thanks @giuse88, this is good :)

dcousens added a commit that referenced this pull request May 27, 2015
Enable add custom value when allowCreate is true
@dcousens dcousens merged commit acb9cbf into JedWatson:master May 27, 2015
@dcousens
Copy link
Collaborator

@giuse88 please be aware that allowCreate is going to change to canAdd (see #205)

@giuse88
Copy link
Author

giuse88 commented May 27, 2015

@dcousens Thank you for merging it. Yeah, I will update my code to use canAdd when the version is out.

@dcousens dcousens mentioned this pull request Jun 3, 2015
@JedWatson
Copy link
Owner

I've renamed the prop to canAddOptions, which I think is clearest, while preparing to release 0.5.0.

@JedWatson
Copy link
Owner

Nevermind, just read the subsequent discussion in #197, reverted my change.

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