Skip to content

Commit

Permalink
typescript: Allow setting any JSX attribute to null
Browse files Browse the repository at this point in the history
  • Loading branch information
Sampo Kivistö committed Oct 13, 2022
1 parent 404b67b commit eb88122
Show file tree
Hide file tree
Showing 2 changed files with 752 additions and 744 deletions.
8 changes: 8 additions & 0 deletions packages/inferno/__tests__/types.spec.tsx
Expand Up @@ -192,5 +192,13 @@ describe('top level context', () => {
container
);
});

it('Should allow null for attributes', function () {
const row = <div tabIndex={null}></div>;
const aria = <div aria-activedescendant={null}></div>;

expect(row).not.toBeNull();
expect(aria).not.toBeNull();
});
})
});

0 comments on commit eb88122

Please sign in to comment.