Material Design Web Components
Go to file
Elizabeth Mitchell 3151fd8d90 fix(textfield): error styles not removing when an unrelated control is invalid
The bug: given a form with two required text fields,
1. Try to submit the form, both fields show error.
2. Add a value to the first field.
3. Try to submit the form, the first field does not remove its error.

This is fixed by listening to form submits and clearing the error state if the control is valid.

I refactored `injectFormReportValidityHooks()` into `addFormReportValidListener()` to keep the `OnReportValidity` class cleaner and better identify the problem we're trying to solve.

PiperOrigin-RevId: 597664564
2024-01-11 15:06:22 -08:00
.github chore: don't add reviewers to size update PR and try new branch 2023-12-20 14:18:29 -08:00
button fix(button): add missing sass imports 2024-01-03 20:08:12 +08:00
catalog docs: expose component size page and make bold look not fuzzy 2023-12-15 14:48:19 -08:00
checkbox fix: rename and move internal/controller/events 2023-12-19 14:49:35 -08:00
chips fix(chips): filter's click.preventDefault() not working when also updating selected 2024-01-02 13:41:33 -08:00
color chore: token code adjustments 2023-09-08 11:38:07 -07:00
dialog fix(dialog): text is now selectable 2023-12-27 08:12:29 -08:00
divider chore: format files with prettier 2023-10-25 11:59:00 -07:00
docs docs: todo cleanup 2024-01-04 08:10:56 -08:00
elevation chore: format files with prettier 2023-10-25 11:59:00 -07:00
fab fix(fab): make tap highlight transparent 2023-11-22 09:56:38 +01:00
field fix(textfield): counter showing when max length is 0 or removed 2023-12-27 08:13:58 -08:00
focus docs: document events in jsdoc 2023-11-09 15:25:21 -08:00
icon [icon_size] fix code regarding feedback 2023-11-14 13:27:55 +01:00
iconbutton refactor(button): move background content outside of inner button 2023-11-10 11:29:54 -08:00
internal chore: add event hooks for default prevention behavior 2023-12-19 16:29:52 -08:00
labs fix(textfield): error styles not removing when an unrelated control is invalid 2024-01-11 15:06:22 -08:00
list refactor: remove Firefox ARIAMixin polyfills (v119+) 2023-11-29 13:48:38 -08:00
menu Merge pull request #5229 from aarondrabeck:md-menu-color-fix 2023-12-15 10:37:44 -08:00
progress Merge pull request #5311 from christophe-g:cg-remove-unecessary-progress-animation 2023-12-27 08:11:01 -08:00
radio fix: rename and move internal/controller/events 2023-12-19 14:49:35 -08:00
ripple fix(ripple): multiple touches causing ripples to start from center 2024-01-08 12:17:43 -08:00
scripts chore: add leading and trailing table pipes 2023-12-13 20:22:56 -08:00
select fix(select): allow aria-expanded to be set to false 2024-01-10 16:09:04 -08:00
slider fix(slider): move ripple and focus ring beneath handle 2024-01-03 10:20:54 -08:00
switch fix: rename and move internal/controller/events 2023-12-19 14:49:35 -08:00
tabs fix(tabs): --md-elevation-level no longer leaks into tabs 2023-12-15 14:19:15 -08:00
testing test: add classes to shared template props 2023-12-05 10:11:56 -08:00
textfield fix(textfield): error styles not removing when an unrelated control is invalid 2024-01-11 15:06:22 -08:00
tokens chore: remove todos for un-actionable spacing tokens bug 2023-12-27 21:13:43 -08:00
typography feat(typography): add typography Sass APIs 2023-09-08 10:59:09 -07:00
.gitignore chore: add commitlint config for scopes 2023-12-14 15:02:12 -08:00
.release-please-manifest.json chore: release 1.1.1 2023-12-13 22:22:57 +00:00
all.ts sort all.ts alphabetically 2023-10-25 09:06:26 +02:00
CHANGELOG.md chore: release 1.1.1 2023-12-13 22:22:57 +00:00
CODE_OF_CONDUCT.md chore: add code of conduct 2023-12-07 16:09:33 -08:00
commitlint.config.js chore: add commitlint config for scopes 2023-12-14 15:02:12 -08:00
common.ts sort common.ts alphabetically 2023-10-25 09:07:01 +02:00
CONTRIBUTING.md docs: add contributing guide 2023-12-18 11:52:14 -08:00
css-to-ts.js Add type:module and convert css-to-ts.js to a module 2022-11-29 17:02:52 -08:00
LICENSE fix: update license year and holder 2023-02-22 15:42:31 -08:00
package-lock.json Merge pull request #5285 from material-components:size 2023-12-14 13:34:17 -08:00
package.json chore: remove commitlint.config.js from build files 2023-12-20 15:20:00 -08:00
README.md chore: add readme link to size and bot 2023-12-13 11:23:32 -08:00
release-please-config.json chore: update release-please 2023-01-09 10:04:00 -08:00
SECURITY.md chore: set up security policy 2023-12-07 16:08:14 -08:00
tsconfig.json docs: auto-generate API docs 2023-09-19 21:05:47 -07:00
web-test-runner.config.js chore: format files with prettier 2023-10-25 11:59:00 -07:00

Material Web

Material web components is a UI toolkit to build customizable and accessible web applications.

Material 3 is the latest version of Google's open-source design system.

Tip: Using Angular? We recommend using Angular Material components instead.

Resources