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/opened when no items #684
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems not to be working with custom values in combo-box
.
Tests are failing.
Reviewable status: 0 of 2 files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the tests and functionality with custom value.
a7851d3
to
36367b4
Compare
Pull Request Test Coverage Report for Build 3379
💛 - Coveralls |
36367b4
to
cff5617
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yuriyvaadin changed the implementation in order not to break tests
Reviewable status: 0 of 4 files reviewed, all discussions resolved (waiting on @YuriyVaadin)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @manolo)
src/vaadin-combo-box-dropdown-wrapper.html, line 158 at r2 (raw file):
_itemsChanged(items) { if (this.opened && !this.$.dropdown.opened && items && items.length) {
should we refactor these 2 new observers and use a multi-property observer for opened
and _items
instead?
Polymer docs require us to always list every dependency as an argument to the observer
cff5617
to
3442b61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 3 of 4 files reviewed, 1 unresolved discussion (waiting on @web-padawan)
src/vaadin-combo-box-dropdown-wrapper.html, line 158 at r2 (raw file):
Previously, web-padawan (Sergey Kulikov) wrote…
should we refactor these 2 new observers and use a multi-property observer for
opened
and_items
instead?
Polymer docs require us to always list every dependency as an argument to the observer
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @manolo)
a discussion (no related file):
With this change, now it seems that the notify: true
here is not needed anymore and can be removed: https://github.com/vaadin/vaadin-combo-box/blob/master/src/vaadin-combo-box-dropdown.html#L66
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: should combo-box
itself still become opened
?
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @manolo)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it's is opened because developer called open()
, but the overlay is not attached.
If we want to change this behaviour like I did in my first commit, we need to change a lot of tests and code.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @manolo)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 4 of 6 files reviewed, 1 unresolved discussion (waiting on @web-padawan)
a discussion (no related file):
Previously, web-padawan (Sergey Kulikov) wrote…
With this change, now it seems that the
notify: true
here is not needed anymore and can be removed: https://github.com/vaadin/vaadin-combo-box/blob/master/src/vaadin-combo-box-dropdown.html#L66
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 4 files at r2, 1 of 1 files at r3, 2 of 2 files at r4.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @web-padawan)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @web-padawan)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r4.
Reviewable status: complete! all files reviewed, all discussions resolved
4c99e2e
to
1df87c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r5.
Reviewable status: complete! all files reviewed, all discussions resolved
Fixes vaadin/vaadin-time-picker#58
This change is