-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(Dropdown|Select|Form): fixes in typings #1401
Conversation
@@ -8,7 +8,6 @@ import { | |||
} from '../../modules/Dropdown'; | |||
|
|||
export interface SelectProps extends DropdownProps { | |||
selection: true; |
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.
true
is not valid type, so it's cruft.
@@ -46,10 +46,6 @@ interface FormProps { | |||
widths?: 'equal'; | |||
} | |||
|
|||
interface FormOnSubmitData extends FormProps { |
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.
Cruft.
@@ -106,71 +106,71 @@ export interface DropdownProps { | |||
* @param {SyntheticEvent} event - React's original SyntheticEvent. | |||
* @param {object} data - All props. | |||
*/ | |||
onBlur: (event: React.KeyboardEvent<HTMLElement>, data: DropdownProps) => void; | |||
onBlur?: (event: React.KeyboardEvent<HTMLElement>, data: DropdownProps) => void; |
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.
Prop is optional
Codecov Report
@@ Coverage Diff @@
## master #1401 +/- ##
=======================================
Coverage 99.74% 99.74%
=======================================
Files 140 140
Lines 2347 2347
=======================================
Hits 2341 2341
Misses 6 6 Continue to review full report at Codecov.
|
Whoops, I missed that one on review as well. Thanks for the update. |
Released in |
Fixes #1400.