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 4412ce1 commit a42e5b8Copy full SHA for a42e5b8
packages/button/src/Button/Button.spec.tsx
@@ -261,6 +261,14 @@ describe('packages/button', () => {
261
<Button onClick={() => {}} />;
262
});
263
264
+ test('infers the onClick handler argument', () => {
265
+ <Button
266
+ onClick={event => {
267
+ event.preventDefault();
268
+ }}
269
+ />;
270
+ });
271
+
272
test('accepts anchor tag attributes', () => {
273
<Button href="http://mongodb.design" target="_blank" rel="noopener" />;
274
0 commit comments