-
Notifications
You must be signed in to change notification settings - Fork 134
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
Add keyboard support. #84
Conversation
src/Panel.jsx
Outdated
this.handleItemClick = this.handleItemClick.bind(this); | ||
this.handleKeyPress = this.handleKeyPress.bind(this); | ||
} | ||
|
||
handleItemClick() { |
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.
Try handleItemClick = () => {
instead of binding in constructor.
@@ -35,12 +49,14 @@ class CollapsePanel extends Component { | |||
[`${prefixCls}-item-disabled`]: disabled, | |||
}, className); | |||
return ( | |||
<div className={itemCls} style={style} id={id} role="tablist"> |
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.
Why remove role="tablist"
?
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.
I just moved it down to an inner div, since what we want to focus would be the header instead of the whole panel.
@afc163 实际使用起来的效果可以找 九向 review 一下。 |
what happen to this PR? |
is this going to be merged? |
src/Panel.jsx
Outdated
@@ -35,12 +43,14 @@ class CollapsePanel extends Component { | |||
[`${prefixCls}-item-disabled`]: disabled, | |||
}, className); | |||
return ( | |||
<div className={itemCls} style={style} id={id} role="tablist"> | |||
<div className={itemCls} style={style} id={id} > |
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.
- id={id} >
+ id={id}>
close #83 |
1.9.0 bumped |
Hi, I'm having issues with redux-form Field component passed to "header" prop of Panel component. I can delete characters in the input but I can't write. Working in rc-collapse 1.8.0 but not in 1.9.0. How should we proceed? |
I'm not very familiar with testing, can you have a look and let me know it this works?