Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit ffb9023

Browse files
lynnmercieryeelan0319
authored andcommitted
fix(form-field) Register MDCFormField in auto-init (#984)
Resolves #978
1 parent e145e37 commit ffb9023

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/material-components-web/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ autoInit.register('MDCCheckbox', checkbox.MDCCheckbox);
3838
autoInit.register('MDCDialog', dialog.MDCDialog);
3939
autoInit.register('MDCPersistentDrawer', drawer.MDCPersistentDrawer);
4040
autoInit.register('MDCTemporaryDrawer', drawer.MDCTemporaryDrawer);
41+
autoInit.register('MDCFormField', formField.MDCFormField);
4142
autoInit.register('MDCRipple', ripple.MDCRipple);
4243
autoInit.register('MDCGridList', gridList.MDCGridList);
4344
autoInit.register('MDCIconToggle', iconToggle.MDCIconToggle);

scripts/check-pkg-for-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function checkCSSDependencyAddedInMDCPackage() {
146146

147147
function checkJSDependencyAddedInMDCPackage() {
148148
const NOT_IMPORTED = ['animation'];
149-
const NOT_AUTOINIT = ['auto-init', 'base', 'form-field'];
149+
const NOT_AUTOINIT = ['auto-init', 'base'];
150150
const name = pkg.name.split('/')[1];
151151
if (typeof(pkg.main) !== 'undefined' && NOT_IMPORTED.indexOf(name) === -1) {
152152
const nameCamel = camelCase(pkg.name.replace('@material/', ''));

0 commit comments

Comments
 (0)