Fix bug when adding empty components#2
Merged
developit merged 1 commit intodevelopit:masterfrom Nov 5, 2016
Merged
Conversation
Owner
|
Looks good. I might have it actually create attrs if it doesn't exist so that elements can have children without attributes. Can do thst post-merge though! |
Collaborator
|
@developit Hmm.. so children aren't supported without attrs being added to sortof component. I think it would be good to fix that. I'll PR it if you agree. |
Contributor
Author
|
Hey! That would be great @NekR. Haven't had the time to do it myself. |
Owner
|
Open to a PR for sure |
Collaborator
|
Okay, will do after #3 is resolved :-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I found a small bug when creating an empty component (with no children) like this:
This small change should fix it. Hope it helps!