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:
parent
eb36e95596
commit
bb1438d20d
2 changed files with 6 additions and 0 deletions
5
.changeset/beige-zebras-ring.md
Normal file
5
.changeset/beige-zebras-ring.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add support for autocomplete attribute to the HTML button type.
|
1
packages/astro/astro-jsx.d.ts
vendored
1
packages/astro/astro-jsx.d.ts
vendored
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue