We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f900373 commit e3a3c5dCopy full SHA for e3a3c5d
packages/button/src/Button/Button.spec.tsx
@@ -265,6 +265,14 @@ describe('packages/button', () => {
265
<Button onClick={() => {}} />;
266
});
267
268
+ test('infers the onClick handler argument', () => {
269
+ <Button
270
+ onClick={event => {
271
+ event.preventDefault();
272
+ }}
273
+ />;
274
+ });
275
+
276
test('accepts anchor tag attributes', () => {
277
<Button href="http://mongodb.design" target="_blank" rel="noopener" />;
278
0 commit comments