From a8a0181aac4cb7a7ae2e5f074060f3f1a575f412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:01:26 +0300 Subject: [PATCH 1/2] Fixed #14377 - Dropdown | Unable to type spaces in editable dropdowns --- src/app/components/dropdown/dropdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 7464bf5c599..4243133e48b 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1587,7 +1587,7 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV } onSpaceKey(event: KeyboardEvent, pressedInInputText: boolean = false) { - !pressedInInputText && this.onEnterKey(event); + !this.editable && !pressedInInputText && this.onEnterKey(event); } onEnterKey(event) { From 514308d10390655938dc62a70abd4e535c9d742d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:06:18 +0300 Subject: [PATCH 2/2] code format --- src/app/components/icons/sortamountdown/sortamountdown.ts | 5 ++++- src/app/components/icons/sortamountupalt/sortamountupalt.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/components/icons/sortamountdown/sortamountdown.ts b/src/app/components/icons/sortamountdown/sortamountdown.ts index a228acc2e17..303e3ad87fd 100644 --- a/src/app/components/icons/sortamountdown/sortamountdown.ts +++ b/src/app/components/icons/sortamountdown/sortamountdown.ts @@ -9,7 +9,10 @@ import { UniqueComponentId } from 'primeng/utils'; template: ` - + diff --git a/src/app/components/icons/sortamountupalt/sortamountupalt.ts b/src/app/components/icons/sortamountupalt/sortamountupalt.ts index 6f9ca0f8e42..cb9b395fdd7 100644 --- a/src/app/components/icons/sortamountupalt/sortamountupalt.ts +++ b/src/app/components/icons/sortamountupalt/sortamountupalt.ts @@ -9,7 +9,10 @@ import { UniqueComponentId } from 'primeng/utils'; template: ` - +