diff --git a/app/components/BookBuilder/Chapter/DropdownTitle.jsx b/app/components/BookBuilder/Chapter/DropdownTitle.jsx index c7390b6c65398a1a1feddfbf2f93ad5128b0a78f..ca4bce3afda11b1037ee8af09b170d6b2849e6d7 100644 --- a/app/components/BookBuilder/Chapter/DropdownTitle.jsx +++ b/app/components/BookBuilder/Chapter/DropdownTitle.jsx @@ -127,9 +127,11 @@ class DropdownTitle extends React.Component { } handleClickOutside (event) { - var domNode = findDOMNode(this) + const domNode = findDOMNode(this) const input = findDOMNode(this.refs.dropDownInput) + if (input) input.focus() + if (domNode.classList.contains('open')) { if (!domNode.contains(event.target)) { this.close()