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/opened when no items #684

Merged
merged 3 commits into from Jul 25, 2018
Merged

Fix/opened when no items #684

merged 3 commits into from Jul 25, 2018

Conversation

manolo
Copy link
Member

@manolo manolo commented Jul 23, 2018

Fixes vaadin/vaadin-time-picker#58


This change is Reviewable

Copy link
Contributor

@yuriy-fix yuriy-fix left a 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

Copy link
Contributor

@yuriy-fix yuriy-fix left a 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: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@yuriy-fix yuriy-fix left a 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.

@manolo manolo force-pushed the fix/opened-when-no-items branch 2 times, most recently from a7851d3 to 36367b4 Compare July 24, 2018 06:03
@coveralls
Copy link

coveralls commented Jul 24, 2018

Pull Request Test Coverage Report for Build 3379

  • 5 of 5 (100.0%) changed or added relevant lines in 2 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.5%) to 90.579%

Files with Coverage Reduction New Missed Lines %
src/vaadin-combo-box-dropdown.html 1 97.35%
src/vaadin-combo-box-dropdown-wrapper.html 2 76.76%
Totals Coverage Status
Change from base Build 3377: -0.5%
Covered Lines: 477
Relevant Lines: 505

💛 - Coveralls

Copy link
Member Author

@manolo manolo left a 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)

Copy link
Member

@web-padawan web-padawan left a 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

Copy link
Member Author

@manolo manolo left a 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.

Copy link
Member

@web-padawan web-padawan left a 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


Copy link
Contributor

@yuriy-fix yuriy-fix left a 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?
opened-c-box.gif

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @manolo)

Copy link
Member Author

@manolo manolo left a 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)

Copy link
Member Author

@manolo manolo left a 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.


Copy link
Contributor

@yuriy-fix yuriy-fix left a comment

Choose a reason for hiding this comment

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

Ok. :lgtm:

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)

Copy link
Contributor

@yuriy-fix yuriy-fix left a 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)

Copy link
Member

@web-padawan web-padawan left a 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: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r5.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

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

4 participants