riek submit on enter
This commit is contained in:
parent
afcd145fad
commit
5a706e1e9d
1 changed files with 9 additions and 0 deletions
|
@ -299,6 +299,15 @@ class ReactTopicCard extends Component {
|
|||
className="titleWrapper"
|
||||
id="titleActivator"
|
||||
classEditing="riek-editing"
|
||||
editProps={{
|
||||
onKeyPress: e => {
|
||||
const ENTER = 13
|
||||
if (e.which === ENTER) {
|
||||
e.preventDefault()
|
||||
this.props.updateTopic({ name: e.target.value })
|
||||
}
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</span>
|
||||
<div className="links">
|
||||
|
|
Loading…
Add table
Reference in a new issue