Skip to content

Commit

Permalink
Fixed #10739 - Spaces are not accepted in p-dropdown-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Oct 14, 2021
1 parent 51508e1 commit 8dac0e9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -943,15 +943,16 @@ export class Dropdown implements OnInit,AfterViewInit,AfterContentInit,AfterView

//space
case 32:
case 32:
if (!this.overlayVisible){
this.show();
}
else {
this.hide();
}
if (search) {
if (!this.overlayVisible){
this.show();
}
else {
this.hide();
}

event.preventDefault();
event.preventDefault();
}
break;

//enter
Expand Down

0 comments on commit 8dac0e9

Please sign in to comment.