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

Add check for vaadin-item import #55

Merged
merged 4 commits into from Sep 17, 2019
Merged

Add check for vaadin-item import #55

merged 4 commits into from Sep 17, 2019

Conversation

yuriy-fix
Copy link
Contributor

Fixes #52

Done the same way as in vaadin-grid, but without FlattenedNodesObserver as vaadin-item is going to be used anyway.

@@ -91,11 +91,23 @@
ready() {
super.ready();
this.setAttribute('role', 'list');

this._debouncerCheckImport = Polymer.Debouncer.debounce(
Copy link
Member

Choose a reason for hiding this comment

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

The ready() will just be called once so there's no point in using a debouncer. Normal setTimeout() of 2000ms works fine here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, should we still be aligned with the vaadin-grid in terms of having _checkImport method or would it be better to move it inside timeout? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

Separate checkImport is fine imo

@yuriy-fix yuriy-fix merged commit 3258e38 into master Sep 17, 2019
@web-padawan web-padawan deleted the check-for-item-import branch July 30, 2021 07:46
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.

Show a warning of missing vaadin-item
2 participants