0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

Add autocomplete to button JSX type (#9522)

* Add autocomplete to button JSX type

This is “nonstandard and Firefox-specific” but often required when working with dynamic disabled state.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autocomplete

* Run `pnpm exec changeset`
This commit is contained in:
Martijn van der Ven 2023-12-25 17:18:42 +01:00 committed by GitHub
parent eb36e95596
commit bb1438d20d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Add support for autocomplete attribute to the HTML button type.

View file

@ -627,6 +627,7 @@ declare namespace astroHTML.JSX {
} }
interface ButtonHTMLAttributes extends HTMLAttributes { interface ButtonHTMLAttributes extends HTMLAttributes {
autocomplete?: string | undefined | null;
disabled?: boolean | string | undefined | null; disabled?: boolean | string | undefined | null;
form?: string | undefined | null; form?: string | undefined | null;
formaction?: string | undefined | null; formaction?: string | undefined | null;