Skip to content

Commit 4c58999

Browse files
authored
Select: Don't keep active state when selecting option (#727)
1 parent 2dec19f commit 4c58999

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.67.5 (2024-09-10)
2+
3+
### Bug fix
4+
5+
- **Select**: Don't keep active state when selecting option
6+
17
# 2.67.4 (2024-08-30)
28

39
### Improvements

projects/pastanaga-angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@guillotinaweb/pastanaga-angular",
33
"description": "Provides Pastanaga UI elements as Angular components",
4-
"version": "2.67.4",
4+
"version": "2.67.5",
55
"license": "MIT",
66
"keywords": [
77
"angular",

projects/pastanaga-angular/src/lib/controls/textfield/select/select.component.ts

+2
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ export class SelectComponent extends TextFieldDirective implements OnChanges, Af
169169
if (!option.disabled && this.isActive && option.value !== this.control.value) {
170170
this.control.patchValue(option.value);
171171
this.optionsDropdown?.close();
172+
this.isOpened = false;
173+
this.cdr.detectChanges();
172174
}
173175
}
174176

0 commit comments

Comments
 (0)