Skip to content

Commit

Permalink
test: Add simple test case for jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Dec 15, 2024
1 parent 32ebe36 commit 779f4a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/ts/preact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ createElement('option', { value: 'foo' });
// Should default to correct event target element for the attribute interface
h<JSX.InputHTMLAttributes>('input', { onClick: e => e.currentTarget.capture });
createElement<JSX.InputHTMLAttributes>('input', { onClick: e => e.currentTarget.capture });
<input onClick={e => e.currentTarget.capture} />;

function Checkbox({ onChange }: JSX.HTMLAttributes<HTMLInputElement>) {
function handleChange(
Expand Down

0 comments on commit 779f4a2

Please sign in to comment.