Skip to content

Conversation

@didimmova
Copy link
Contributor

Closes #15965

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@didimmova didimmova linked an issue Jun 23, 2025 that may be closed by this pull request
@desig9stein desig9stein added 💥 status: in-test PRs currently being tested ✅ status: verified Applies to PRs that have passed manual verification and removed ❌ status: awaiting-test PRs awaiting manual verification 💥 status: in-test PRs currently being tested labels Jun 23, 2025
@didimmova didimmova requested a review from simeonoff June 26, 2025 09:05

private toggleClass(element: HTMLElement, className: string, add: boolean): void {
if (!element) return;
add ? this.renderer.addClass(element, className) : this.renderer.removeClass(element, className);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nitpick, but I'd use a regular control flow "if / else" statement here instead of a ternary operator.

Comment on lines 39 to 41
private renderer: Renderer2,
@Inject(PLATFORM_ID) private platformId: Object,
private ngZone: NgZone
Copy link
Collaborator

Choose a reason for hiding this comment

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

Try to use the inject API so you don't have to also modify all classes that extend the base class.

@didimmova didimmova requested a review from simeonoff June 26, 2025 14:46
@simeonoff simeonoff merged commit 8911970 into 20.0.x Jun 30, 2025
3 checks passed
@simeonoff simeonoff deleted the didimmova/fix-scrollbar-gap branch June 30, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dropdown version: 20.0.x virtualization ✅ status: verified Applies to PRs that have passed manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Combo/SimpleCombo: unnecessary padding when no scrollbar visible

4 participants