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 a SetValue exception when in multilevel mark-up control #732

Merged
merged 10 commits into from
Aug 14, 2019

Conversation

cafour
Copy link
Contributor

@cafour cafour commented Aug 1, 2019

Fixes another bug reported by @JaskaRoman.

The problem is IMHO best described through the sample in this PR:

Let's have a ComboBox inside a markup control -InnerWrapper - that is wrapped in another markup control - OuterWrapper. The selected value of the ComboBox is bound using a value binding and two control bindings. If you try to set the SelectedValue of InnerWrapper using SetValue you get an exception because DotVVM doesn't currently allow bindings to propagate values in these cases.

That's what this PR is trying to fix by changing the resolver of BindingUpdateDelegate.

Copy link
Member

@exyi exyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please describe what is actually fixed and what was the problem. I think I have extracted that information from the patch, but it's not that obvious.

@cafour cafour requested a review from exyi August 6, 2019 12:29
@cafour cafour merged commit c81aefa into master Aug 14, 2019
@cafour
Copy link
Contributor Author

cafour commented Aug 14, 2019

Merging as, since CI doesn't seem to work properly right now, I ran the tests locally and they passed.

@cafour cafour deleted the fix/nested-markup-get-value branch August 14, 2019 10:22
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.

None yet

2 participants