Skip to content

Commit 39f4457

Browse files
committed
fix(combo): add owner to event args #7282
1 parent 7c37b1c commit 39f4457

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ All notable changes for each version of this project will be documented in this
204204

205205
- `IgxCombo`:
206206
- Added `autoFocusSearch` input that allows to manipulate the combo's opening behavior. When the property is `true` (by default), the combo's search input is focused on open. When set to `false`, the focus goes to the combo items container, which can be used to prevent the software keyboard from activating on mobile devices when opening the combo.
207-
- 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.
207+
- 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, `owner` - holds a reference to the combo component and `cancel` - indicates whether the event should be canceled.
208208

209209
- `IgxToast`:
210210
- Added functionality for displaying various content into the toast component. It also allows users to access toast styles through its host element.

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

+1
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ describe('igxCombo', () => {
533533

534534
const args = {
535535
searchText: 'Fake',
536+
owner: combo,
536537
cancel: false
537538
};
538539
combo.handleInputChange('Fake');

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

+1
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ export class IgxComboComponent extends DisplayDensityBase implements IgxComboBas
990990
if (event !== undefined) {
991991
const args: IComboSearchInputEventArgs = {
992992
searchText: event,
993+
owner: this,
993994
cancel: false
994995
};
995996
this.onSearchInput.emit(args);

0 commit comments

Comments
 (0)