Skip to content

Commit 0e253a2

Browse files
chore(label): removes label activation shim, no longer needed
PiperOrigin-RevId: 532898283
1 parent 13ebe65 commit 0e253a2

File tree

3 files changed

+0
-113
lines changed

3 files changed

+0
-113
lines changed

controller/form-associated.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

controller/form-controller.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
import {ReactiveController, ReactiveControllerHost} from 'lit';
88

9-
import {isFormAssociated} from './form-associated.js';
10-
import {shimLabelSupport, SUPPORTS_FACE_LABEL} from './shim-label-activation.js';
11-
129
declare global {
1310
interface Window {
1411
ShadyDOM?: {inUse: boolean;};
@@ -79,12 +76,6 @@ export class FormController implements ReactiveController {
7976
// null if the child was removed.
8077
this.form = this.element.form;
8178
this.form?.addEventListener('formdata', this.formDataListener);
82-
83-
// TODO(b/261871554) Label activation shim is currently only needed for
84-
// Safari. Remove it when no longer needed.
85-
if (isFormAssociated(this.element) && !SUPPORTS_FACE_LABEL) {
86-
shimLabelSupport(this.element.getRootNode() as Document | ShadowRoot);
87-
}
8879
}
8980

9081
hostDisconnected() {

controller/shim-label-activation.ts

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)