Skip to content

Commit

Permalink
Select: Don't keep active state when selecting option (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpellerin42 authored Sep 10, 2024
1 parent 2dec19f commit 4c58999
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.67.5 (2024-09-10)

### Bug fix

- **Select**: Don't keep active state when selecting option

# 2.67.4 (2024-08-30)

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion projects/pastanaga-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@guillotinaweb/pastanaga-angular",
"description": "Provides Pastanaga UI elements as Angular components",
"version": "2.67.4",
"version": "2.67.5",
"license": "MIT",
"keywords": [
"angular",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ export class SelectComponent extends TextFieldDirective implements OnChanges, Af
if (!option.disabled && this.isActive && option.value !== this.control.value) {
this.control.patchValue(option.value);
this.optionsDropdown?.close();
this.isOpened = false;
this.cdr.detectChanges();
}
}

Expand Down

0 comments on commit 4c58999

Please sign in to comment.