-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Adds tag creator #151
Adds tag creator #151
Conversation
Hi @flovilmart, could you please update this PR without the dist files? (and rebase if necessary) |
Ok. I'll do my best :) On Mon, May 11, 2015 at 8:47 PM, Daniel Cousens notifications@github.com
|
2fc80ac
to
50adf7a
Compare
Rebased and removed the commits from the dist and lib |
+1 |
+1 |
I've updated, and rebased On Wed, May 13, 2015 at 1:37 PM, Bryant Teja notifications@github.com
|
Thanks @flovilmart this is great. |
@flovilmart should a callback be fired to notify of a new tag? We should probably try to lift more state out of this component. |
Not that implémentation, just the on change is fired. That would be a nice feature (but I didn't need it at the time) On Mon, May 18, 2015 at 2:53 AM, Daniel Cousens notifications@github.com
|
@flovilmart thoughts about making a PR for it? :) |
Haha :) you could do it too :p what callback signature would you like? Would you want if before or after the change? Do you want it cancellable? On Mon, May 18, 2015 at 7:18 PM, Daniel Cousens notifications@github.com
|
@flovilmart haha, before the state change is always better, that way the user can throw new props at it if necessary.
That is a good question, if this module was structured properly, we'd handle this like an |
As for thé signature, I could go with the same as onChange. Call it onAdd? On Mon, May 18, 2015 at 7:46 PM, Daniel Cousens notifications@github.com
|
@flovilmart sounds good to me |
Just created another PR, maybe we should rename allowCreate to enableAdd, or canAdd or allowAdd, or addEnabled... |
|
+1 |
Adds allowCreate=true prop so the field will allow option creation.
By default this option is disable to maintain backward compatibility