From bb1438d20d325acd15f3755c6e306e45a7c64bcd Mon Sep 17 00:00:00 2001 From: Martijn van der Ven Date: Mon, 25 Dec 2023 17:18:42 +0100 Subject: [PATCH] Add autocomplete to button JSX type (#9522) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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` --- .changeset/beige-zebras-ring.md | 5 +++++ packages/astro/astro-jsx.d.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/beige-zebras-ring.md diff --git a/.changeset/beige-zebras-ring.md b/.changeset/beige-zebras-ring.md new file mode 100644 index 0000000000..f81f6aa6fc --- /dev/null +++ b/.changeset/beige-zebras-ring.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Add support for autocomplete attribute to the HTML button type. diff --git a/packages/astro/astro-jsx.d.ts b/packages/astro/astro-jsx.d.ts index 46202644a6..fd4632eaed 100644 --- a/packages/astro/astro-jsx.d.ts +++ b/packages/astro/astro-jsx.d.ts @@ -627,6 +627,7 @@ declare namespace astroHTML.JSX { } interface ButtonHTMLAttributes extends HTMLAttributes { + autocomplete?: string | undefined | null; disabled?: boolean | string | undefined | null; form?: string | undefined | null; formaction?: string | undefined | null;