-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Why was comma create new tag functionality removed? #987
Comments
See #960 |
@keul Not exactly sure how the |
FWIW that line was added, commented out, in c3d5e01. Not sure why, but it was commented out from the code and added to the "TODO" list (where it remains currently). |
Took a quick look at this and it looks like there's a good bit more complexity than just the commented-out lines. Looks like support for |
@bvaughn It did not seem too tricky. I took the PR #660 which seemed abandon, the I created the PR #999 with those changes and all tests pass (along with the new ones for the re-implemented functionality), just waiting on feedback on it. Chance are I am going to publish my own version on NPM this weekend so I can continue along with my project as this functionality is 100% a show stopper. |
Oh cool. I was unaware of #660. I was just working from master, where the property is defined but not used or referenced anywhere. |
By the way, I believe PR #1187 should resolve this issue. Please feel free top give the branch a spin and let me know if you have any concerns or other feedback. 😄 |
This issue no longer exists in the 1.x code (as of PR #1187) and so I'm going to close it! Look for an updated RC with this functionality soon. 😎 |
Is this fix in the rc.1 code? |
Yup. Comma creates a new tag by default, as does ENTER and TAB |
I've just resinstalled the package from the master branch.
But it only works with |
Why not just install the RC from NPM?
Have you tried just copying the |
Just installed the rc.1 again for trying. Anyway, I have now a new issue : |
Ah, right. Async and Creatable are exported as static properties on the On Sep 8, 2016 6:26 PM, "Cisco Guillaume" notifications@github.com wrote:
|
No idea about the RangeError you mention. Does not sound related to my changes. File a separate issue or ask on Stack Overflow? |
Thanks for the quick response @bvaughn ! |
Ok, just found why we can have an infinite loop here.
If |
Hmm. IMO options should be required to be an Array. An empty array is fine On Sep 8, 2016 7:48 PM, "Cisco Guillaume" notifications@github.com wrote:
|
Hum, any way to declare it in the PropTypes? |
I think this is preferable as an empty
Yes it is definitely possible. Jed didn't mark any Looking at var options = this.props.options || [] So I guess it wouldn't be unreasonable to handle this within |
Now that the other PR I was working on is done, I'm looking at this again. I'd like to understand a little more about how or why |
Hey @bvaughn, in my case I was passing the options attribute like |
Hey @GuillaumeCisco, Thanks for the quick response! Passing |
FWIW I believe that's b'c we're now concatenating existing options before calling |
FYI I just pushed PR #1213 to add a little better guard around this. |
Thank you very much 👍 |
So there is this block of commented out code:
and I was wondering why it is commented out? Being able to create a new tag on the comma key is a pretty big deal for me and was wondering when this would be added back in?
The text was updated successfully, but these errors were encountered: