Skip to content
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

Fix #1399: Duplicate binding error with insertUI and nested uiOutput #1402

Merged
merged 2 commits into from
Oct 19, 2016

Conversation

jcheng5
Copy link
Member

@jcheng5 jcheng5 commented Sep 30, 2016

This is a pretty low-level change. Basically, we find a list of uiOutput elements and bind them one by one. But element 0 is the parent of element 1. Binding element 0 causes element 1 to be removed and replaced with element 1a (which shares an id with element 1). But we continue down the list we captured earlier, so element 1 is the next thing we bind. Not only are we binding an element that's been removed from the document, but, we're also re-binding an id that has just been bound.

@wch
Copy link
Collaborator

wch commented Oct 1, 2016

This looks OK to me but I'm reluctant to merge it for the upcoming release because there could be unforeseen consequences.

@wch
Copy link
Collaborator

wch commented Oct 18, 2016

@jcheng5 Can you add a NEW entry? You'll probably want to rebase this branch to get your NEWS.md up to date first.

@jcheng5 jcheng5 force-pushed the joe/bugfix/insertui-nested-uioutput branch from 9ecb1e8 to 873d0b5 Compare October 18, 2016 21:41
@jcheng5
Copy link
Member Author

jcheng5 commented Oct 18, 2016

@wch Should be all set now, assuming CI tests pass. Thanks.

@wch wch merged commit e133290 into master Oct 19, 2016
@wch wch deleted the joe/bugfix/insertui-nested-uioutput branch October 19, 2016 01:22
@wch wch removed the review label Oct 19, 2016
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.

2 participants