Skip to content

Commit a33fcbb

Browse files
asynclizcopybara-github
authored andcommitted
fix(chips): remove selected event from input chips
PiperOrigin-RevId: 540979855
1 parent b665917 commit a33fcbb

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

chips/lib/input-chip.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
import {html, nothing, PropertyValues} from 'lit';
7+
import {html, nothing} from 'lit';
88
import {property, query} from 'lit/decorators.js';
99

1010
import {ARIAMixinStrict} from '../../internal/aria/aria.js';
@@ -52,15 +52,6 @@ export class InputChip extends MultiActionChip {
5252
@query('.trailing.action')
5353
protected readonly trailingAction!: HTMLElement|null;
5454

55-
protected override update(changed: PropertyValues<this>) {
56-
if (changed.has('selected') && changed.get('selected') !== undefined) {
57-
// Dispatch when `selected` changes, except for the first update.
58-
this.dispatchEvent(new Event('selected', {bubbles: true}));
59-
}
60-
61-
super.update(changed);
62-
}
63-
6455
protected override getContainerClasses() {
6556
return {
6657
...super.getContainerClasses(),

0 commit comments

Comments
 (0)