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: (Platform) fix combobox examples for stackblitz #4469

Merged
merged 2 commits into from
Jan 26, 2021

Conversation

Betrozov
Copy link
Contributor

@Betrozov Betrozov commented Jan 25, 2021

Please provide a link to the associated issue.

Part of #4392

Please provide a brief summary of this pull request.

All Combobox examples work on StackBlitz

Please check whether the PR fulfills the following requirements

Documentation checklist:

  • Documentation Examples
  • Stackblitz works for all examples

@Betrozov Betrozov added documentation There is an issue with documentation platform platform stackblitz labels Jan 25, 2021
@Betrozov Betrozov added this to the Sprint 55 - ariba milestone Jan 25, 2021
@Betrozov Betrozov self-assigned this Jan 25, 2021
@netlify
Copy link

netlify bot commented Jan 25, 2021

Deploy preview for fundamental-ngx ready!

Built with commit 6289ebf

https://deploy-preview-4469--fundamental-ngx.netlify.app

@InnaAtanasova InnaAtanasova requested a review from a team January 25, 2021 13:45
@@ -89,7 +84,7 @@ export class ComboboxComponent extends BaseCombobox implements OnInit, AfterView

/** @hidden */
ngOnInit(): void {
const providers = this.providers.size === 0 ? this._comboboxConfig.providers : this.providers;
const providers = this.providers && this.providers.size === 0 ? this._comboboxConfig.providers : this.providers;
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we a using TS greater than 3.7 it could be simplified:

Suggested change
const providers = this.providers && this.providers.size === 0 ? this._comboboxConfig.providers : this.providers;
const providers = this.providers?.size === 0 ? this._comboboxConfig.providers : this.providers;

Copy link
Contributor

@InnaAtanasova InnaAtanasova left a comment

Choose a reason for hiding this comment

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

@Betrozov Betrozov changed the title docs: (Platform) fix combobox examples for stackblitz fix: (Platform) fix combobox examples for stackblitz Jan 25, 2021
@Betrozov Betrozov merged commit ecfc125 into main Jan 26, 2021
@Betrozov Betrozov deleted the fix-combobox-stackblitz branch January 26, 2021 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation There is an issue with documentation platform platform stackblitz
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants