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

Input bindings fixes #191

Merged
merged 3 commits into from
Jun 7, 2018
Merged

Input bindings fixes #191

merged 3 commits into from
Jun 7, 2018

Conversation

Starzu
Copy link
Contributor

@Starzu Starzu commented Jun 6, 2018

Fixes to #186

@Starzu Starzu added this to the 0.7.0 milestone Jun 6, 2018
@Starzu Starzu requested a review from ddworak June 6, 2018 07:01
nestedInterceptor(
produceWithNested(options) { case (opts, nested) =>
refreshSelection(opts)
produce(options) { case opts =>
Copy link
Member

Choose a reason for hiding this comment

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

Partial function does not seem to be necessary here.

@@ -32,7 +32,7 @@ object RadioButtons {
selectedItem: Property[T], options: ReadableProperty[Seq[T]]
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason to use ReadableProperty[Seq] here and a SeqProperty in the CheckButtons? We could probably avoid rerendering everything if these were both SeqProperties.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CheckButtons uses ReadableProperty[Seq] too. I think that produce is good enough here, but we can change the argument type to ReadableSeqProperty to make replacement with repeat backward compatible.

@Starzu Starzu merged commit ced756f into master Jun 7, 2018
@Starzu Starzu deleted the input-bindings-fixes branch June 7, 2018 08:20
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