Skip to content
Snippets Groups Projects
Commit 1022edd3 authored by chris's avatar chris
Browse files

focus ipnut in chapter

parent f62ab667
No related branches found
No related tags found
No related merge requests found
...@@ -230,6 +230,8 @@ export class Chapter extends React.Component { ...@@ -230,6 +230,8 @@ export class Chapter extends React.Component {
evt.target.parentElement.id === 'dropbutton' || evt.target.parentElement.id === 'dropbutton' ||
evt.target.classList.contains('caret') || evt.target.classList.contains('caret') ||
evt.target.classList.contains('drop-input')) { evt.target.classList.contains('drop-input')) {
const input = findDOMNode(this.refs.dropDownInput)
if (input) input.focus()
return return
} }
this.setState({ this.setState({
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment