From 1022edd36ed6e8357dfc5b6111b9bbeca0aeedfa Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 2 Dec 2016 17:11:10 +0200 Subject: [PATCH] focus ipnut in chapter --- app/components/BookBuilder/Chapter.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/BookBuilder/Chapter.jsx b/app/components/BookBuilder/Chapter.jsx index c008425..4d0ffc8 100644 --- a/app/components/BookBuilder/Chapter.jsx +++ b/app/components/BookBuilder/Chapter.jsx @@ -230,6 +230,8 @@ export class Chapter extends React.Component { evt.target.parentElement.id === 'dropbutton' || evt.target.classList.contains('caret') || evt.target.classList.contains('drop-input')) { + const input = findDOMNode(this.refs.dropDownInput) + if (input) input.focus() return } this.setState({ -- GitLab