Skip to content

Commit

Permalink
refactor(module:tree-select): simpilfy code (#8734)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperLife1119 authored Sep 9, 2024
1 parent 302e900 commit 2a5e06e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/tree-select/tree-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const listOfPositions = [
}
],
host: {
class: 'ant-select',
class: 'ant-select ant-tree-select',
'[class.ant-select-in-form-item]': '!!nzFormStatusService',
'[class.ant-select-lg]': 'nzSize==="large"',
'[class.ant-select-rtl]': 'dir==="rtl"',
Expand Down Expand Up @@ -371,9 +371,6 @@ export class NzTreeSelectComponent extends NzTreeBase implements ControlValueAcc
private focusMonitor: FocusMonitor
) {
super(nzTreeService);

this.renderer.addClass(this.elementRef.nativeElement, 'ant-select');
this.renderer.addClass(this.elementRef.nativeElement, 'ant-tree-select');
}

ngOnInit(): void {
Expand Down

0 comments on commit 2a5e06e

Please sign in to comment.