12 Commits

Author SHA1 Message Date
Elizabeth Mitchell
4142a697ca feat(labs): change form-submitter to a behavior mixin
PiperOrigin-RevId: 878869545
2026-03-04 23:43:05 -08:00
Elizabeth Mitchell
2bb480fb82 chore: move events out of controller folder
PiperOrigin-RevId: 592021123
2023-12-18 15:07:51 -08:00
Elizabeth Mitchell
9e3f0801aa fix(button): sometimes submits form even when click listener prevents default
Fixes #5032

PiperOrigin-RevId: 588925434
2023-12-07 15:18:05 -08:00
Elizabeth Mitchell
1f55d4111f chore(behaviors): update form controls to use shared mixins
PiperOrigin-RevId: 578297611
2023-10-31 14:08:39 -07:00
Elizabeth Mitchell
e7bc633e18 chore(behaviors): add ElementInternals mixin
PiperOrigin-RevId: 576937116
2023-10-26 11:31:33 -07:00
Elizabeth Mitchell
c390291687 chore: format files with prettier
PiperOrigin-RevId: 576601342
2023-10-25 11:59:00 -07:00
Elizabeth Mitchell
1e7aff50cf feat(focus,ripple): allow setting element.control = elementRef
Why? Makes it easier in lit to attach elements in bindings

```html
<md-ripple .control=${this}>
```

This is needed to support radio, which needs to make the host element interactive.

PiperOrigin-RevId: 559899531
2023-08-24 16:09:25 -07:00
Elizabeth Mitchell
f23fac1465 fix(button): add value to form when submitting
Fixes #4526

PiperOrigin-RevId: 558261952
2023-08-18 15:24:42 -07:00
Elizabeth Mitchell
c0da72b6dc feat(iconbutton): add form submission
This is needed for `<md-dialog>` for close icon buttons.

I split out button's logic into a static helper method. I also added a symbol to share ElementInternals.

PiperOrigin-RevId: 554943716
2023-08-08 14:33:01 -07:00
Elizabeth Mitchell
fdf67682af chore: remove formcontroller
PiperOrigin-RevId: 537898948
2023-06-05 09:32:39 -07:00
Elliott Marquez
f47bdc3925 fix(ssr): make "for" attribute watcher SSR compatible
PiperOrigin-RevId: 536858733
2023-05-31 16:42:50 -07:00
Elizabeth Mitchell
b9daa95164 chore(controller): move to internal
PiperOrigin-RevId: 536574896
2023-05-30 19:43:02 -07:00