Skip to content

Commit bd75a1f

Browse files
committed
chore(combo): extend IBaseEventArgs & rename searchTerm #7282
1 parent eae84a4 commit bd75a1f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ All notable changes for each version of this project will be documented in this
77
### General
88
- `igxCombo`
99
- **Behavioral Change** - Change default positioning strategy from `ConnectedPositioningStrategy` to `AutoPositionStrategy`. The [`Auto`](https://www.infragistics.com/products/ignite-ui-angular/angular/components/overlay_position.html#auto) strategy will initially try to show the element like the Connected strategy does. If the element goes out of the viewport Auto will flip the starting point and the direction, i.e. if the direction is 'bottom', it will switch it to 'top' and so on. If after flipping direction the content goes out of the view, auto strategy will revert to initial start point and direction and will push the content into the view. Note after pushing the content it may hide the combo's input.
10-
- Make `onSearchInput` event cancellable. The event args type has been changed to `IComboSearchInputEventArgs`, which have two properties: `searchTerm` - holds the change in the search input and `cancel` - indicates whether the event should be canceled.
10+
- Make `onSearchInput` event cancellable. The event args type has been changed to `IComboSearchInputEventArgs`, which have the following properties: `searchText` - holds the text typed into the search input and `cancel` - indicates whether the event should be canceled.
1111
- `IgxOverlay`
1212
- Added new property - `closeOnEsc` - in `OverlaySettings`. The overlay can now be prevented from closing, on escape keypress, by setting the property to `false`, by default it's `true`.
1313
- `igxDialog`

projects/igniteui-angular/src/lib/combo/combo.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export enum IgxComboState {
8181
}
8282

8383
/** Event emitted when an igx-combo's selection is changing */
84-
export interface IComboSelectionChangeEventArgs extends CancelableEventArgs, IBaseEventArgs {
84+
export interface IComboSelectionChangeEventArgs extends CancelableEventArgs, IBaseEventonSeaArgs {
8585
/** An array containing the values that are currently selected */
8686
oldSelection: any[];
8787
/** An array containing the values that will be selected after this event */
@@ -97,9 +97,9 @@ export interface IComboSelectionChangeEventArgs extends CancelableEventArgs, IBa
9797
}
9898

9999
/** Event emitted when the igx-combo's search input changes */
100-
export interface IComboSearchInputEventArgs extends CancelableEventArgs {
101-
/** The change that has been made to the search input */
102-
searchTerm: string;
100+
export interface IComboSearchInputEventArgs extends CancelableEventArgs, IBaseEventArgs {
101+
/** The text that has been typed into the search input */
102+
searchText: string;
103103
}
104104

105105
export interface IComboItemAdditionEvent extends IBaseEventArgs {
@@ -489,7 +489,7 @@ export class IgxComboComponent extends DisplayDensityBase implements IgxComboBas
489489
* ```
490490
*/
491491
@Output()
492-
public onSearchInput = new EventEmitter<IComboSearchInputEventArgs>();
492+
public onSearchInput = new EventEmitter<CancelableBrowserEventArgs & IBaseEventArgs>();
493493

494494
/**
495495
* Emitted when new chunk of data is loaded from the virtualization
@@ -988,7 +988,7 @@ export class IgxComboComponent extends DisplayDensityBase implements IgxComboBas
988988
public handleInputChange(event?: string) {
989989
if (event !== undefined) {
990990
const args: IComboSearchInputEventArgs = {
991-
searchTerm: event,
991+
searchText: event,
992992
cancel: false
993993
};
994994
this.onSearchInput.emit(args);

0 commit comments

Comments
 (0)