Skip to content

Commit 1a20fa0

Browse files
committed
fix: update fixedPlaceholder default value to true in NgSelectConfig
1 parent a9655af commit 1a20fa0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ng-select/lib/config.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
33
@Injectable({ providedIn: 'root' })
44
export class NgSelectConfig {
55
placeholder: string;
6-
fixedPlaceholder = false;
6+
fixedPlaceholder = true;
77
notFoundText = 'No items found';
88
typeToSearchText = 'Type to search';
99
addTagText = 'Add item';

src/ng-select/lib/ng-select.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,7 @@ describe('NgSelectComponent', () => {
26062606

26072607
expect(fixture.debugElement.query(By.css('.ng-placeholder'))).toBeFalsy();
26082608
}));
2609-
2609+
26102610
it('should update ng-option label', fakeAsync(() => {
26112611
const fixture = createTestingModule(
26122612
NgSelectTestComponent,

src/ng-select/lib/ng-select.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class NgSelectComponent implements OnDestroy, OnChanges, OnInit, AfterVie
9090
@Input() ariaLabel: string | undefined;
9191
@Input({ transform: booleanAttribute }) markFirst = true;
9292
@Input() placeholder: string;
93-
@Input() fixedPlaceholder: boolean = false;
93+
@Input() fixedPlaceholder: boolean = true;
9494
@Input() notFoundText: string;
9595
@Input() typeToSearchText: string;
9696
@Input() preventToggleOnRightClick: boolean = false;

0 commit comments

Comments
 (0)