Skip to content

HtmlDialogTag is missing "closedby" attribute #460

@8549

Description

@8549

Prerequisites

  • I have written a clear issue title
  • I have searched existing issues to avoid duplicates

Versions

4.2.11

A minimal reproducible example

https://

Bug Description

The dialog element interface is missing the closedby property:

interface HtmlDialogTag extends HtmlTag {
  open?: undefined | boolean;
  onclose?: undefined | string;
}

but it should be there as per the HTML spec.

Steps to Reproduce

import { Html } from "@kitajs/html";

const MyComponent = () => <dialog closedby="any"></dialog>;

Expected Behavior

To not see the error

Type '{ closedby: string; }' is not assignable to type 'HtmlDialogTag'.
Property 'closedby' does not exist on type 'HtmlDialogTag'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions