Skip to content

Commit

Permalink
allow klp-select to be closed programmatically
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-willems committed Aug 14, 2023
1 parent 2aed107 commit 23ae0b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/klippa/ngx-enhancy-forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klippa/ngx-enhancy-forms",
"version": "14.7.0",
"version": "14.7.1",
"publishConfig": {
"access": "public"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ export class SelectComponent extends ValueAccessorBase<string | string[]> implem
public focus = (): void => {
this.ngSelect.focus();
}
public close = (): void => {
this.ngSelect.close();
}

public onClose(): void {
// Give angular a second to render the closed situation before emitting the close event
Expand Down

0 comments on commit 23ae0b0

Please sign in to comment.