Skip to content

Commit

Permalink
fix(chips): remove selected event from input chips
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 540979855
  • Loading branch information
asyncLiz authored and copybara-github committed Jun 16, 2023
1 parent b665917 commit a33fcbb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions chips/lib/input-chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import {html, nothing, PropertyValues} from 'lit';
import {html, nothing} from 'lit';
import {property, query} from 'lit/decorators.js';

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

protected override update(changed: PropertyValues<this>) {
if (changed.has('selected') && changed.get('selected') !== undefined) {
// Dispatch when `selected` changes, except for the first update.
this.dispatchEvent(new Event('selected', {bubbles: true}));
}

super.update(changed);
}

protected override getContainerClasses() {
return {
...super.getContainerClasses(),
Expand Down

0 comments on commit a33fcbb

Please sign in to comment.