-
-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: Add command invoker types #4692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d4daaac
to
cb05c34
Compare
src/jsx.d.ts
Outdated
@@ -1613,6 +1613,9 @@ export namespace JSXInternal { | |||
|
|||
interface ButtonHTMLAttributes<T extends EventTarget = HTMLButtonElement> | |||
extends HTMLAttributes<T> { | |||
command?: Signalish<string | undefined>; | |||
commandfor?: Signalist<string | undefined>; | |||
commandFor?: Signalist<string | undefined>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a .commandForElement property that you can set to an element, it would be good to support this in Preact but popoverTargetElement also doesn't seem to be handled so will omit that for now.
TODO: Add onCommand IDL event handler |
📊 Tachometer Benchmark ResultsSummaryA summary of the benchmark results will show here once they finish. ResultsThe full results of your benchmarks will show here once they finish. |
Fix typo Co-authored-by: Ryan Christian <[email protected]>
0ac897a
to
de8d894
Compare
HTML spec got merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Reference:
See chrome Intent to ship
Leaving as Draft till the spec is merged / Chrome i2S is approved.