Skip to content

Commit e80cba3

Browse files
authored
Merge pull request #451 from UiPath/fix/searchable_directive
fix(grid): allow resetting searchable directive's value
2 parents b5676d5 + 94988fb commit e80cba3

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v15.1.2 (2024-01-29)
2+
* **grid** allow resetting searchable directive's value
3+
14
# v15.1.1 (2024-01-16)
25
* **keyboard-shortcut** initialize shortcut keys input
36
* **grid** translate filter options

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-components",
3-
"version": "15.1.1",
3+
"version": "15.1.2",
44
"author": {
55
"name": "UiPath Inc",
66
"url": "https://uipath.com"

projects/angular/components/ui-grid/src/filters/ui-grid-search-filter.directive.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,12 @@ export class UiGridSearchFilterDirective<T> extends UiGridFilterDirective<T> imp
132132
}
133133

134134
private handleMultiple(value?: ISuggestValue, isSelected?: boolean) {
135-
if (!value || this.checkAlreadyExisting(value, isSelected)) {
135+
if (!value) {
136+
this.value = [];
137+
return;
138+
}
139+
140+
if (this.checkAlreadyExisting(value, isSelected)) {
136141
return;
137142
}
138143

projects/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uipath/angular",
3-
"version": "15.1.1",
3+
"version": "15.1.2",
44
"license": "MIT",
55
"author": {
66
"name": "UiPath Inc",

0 commit comments

Comments
 (0)