Skip to content
Snippets Groups Projects
Commit 5fc10294 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

Merged in focus-input (pull request #12)

dorpdown input focus and transaprent bg on focus and active
parents e4e29934 07adcd87
No related branches found
No related tags found
No related merge requests found
...@@ -127,7 +127,10 @@ class DropdownTitle extends React.Component { ...@@ -127,7 +127,10 @@ class DropdownTitle extends React.Component {
} }
handleClickOutside (event) { 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.classList.contains('open')) {
if (!domNode.contains(event.target)) { if (!domNode.contains(event.target)) {
......
...@@ -86,7 +86,7 @@ $white: #fff; ...@@ -86,7 +86,7 @@ $white: #fff;
padding: 0; padding: 0;
position: relative; position: relative;
&:hover { &:hover, &:active, &:focus {
background: transparent !important; background: transparent !important;
} }
......
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