Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(material/chips): Make MatChipInputEvent.chipInput required. #23692

Merged
merged 1 commit into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/material-experimental/mdc-chips/chip-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ export interface MatChipInputEvent {
/** The value of the input. */
value: string;

/**
* Reference to the chip input that emitted the event.
* @breaking-change 13.0.0 This property will be made required.
*/
chipInput?: MatChipInput;
/** Reference to the chip input that emitted the event. */
chipInput: MatChipInput;
}

// Increasing integer for generating unique ids.
Expand Down
7 changes: 2 additions & 5 deletions src/material/chips/chip-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ export interface MatChipInputEvent {
/** The value of the input. */
value: string;

/**
* Reference to the chip input that emitted the event.
* @breaking-change 13.0.0 This property will be made required.
*/
chipInput?: MatChipInput;
/** Reference to the chip input that emitted the event. */
chipInput: MatChipInput;
}

// Increasing integer for generating unique ids.
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/material/chips.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class MatChipInput implements MatChipTextControl, OnChanges, OnDestroy, A

// @public
export interface MatChipInputEvent {
chipInput?: MatChipInput;
chipInput: MatChipInput;
// @deprecated
input: HTMLInputElement;
value: string;
Expand Down