material-components / material-web

Material Design Web Components
https://material-web.dev
Apache License 2.0
8.79k stars 827 forks source link

fix: formDisabledCallback and <fieldset> disabled attribute #5565

Open datvm opened 1 month ago

datvm commented 1 month ago

Fixes #5049 where the control disabled property itself is changed which would cause issues for fieldset.

This commit need to be merged along with #5563. I am sorry I am not familiar with the process of one PR depends on the other. In that commit, the render/UI/behavior make use of :disabled instead of the disabled property only, therefore the behavior should matches with native elements:

https://github.com/material-components/material-web/assets/6388546/7ca89b96-1d7e-4bd8-8dfc-1d901904fadc

asyncLiz commented 1 month ago

Let's wait for https://github.com/material-components/material-web/pull/5563 to land, then you can sync to head for it.