vutran / omnibar

:spades: Extensible search component for React.

Home Page:https://omnibar.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change input style on focus

AlexMarlo opened this issue · comments

commented

Github search change styles on focus.
What is the way to do this with omnibar?

commented

May be we can do something like this ?

`
handleBlur = () => {
if(this.props.onBlur) {
this.props.onFocus.call();
}
setTimeout(() => this.setState({ displayResults: false }), BLUR_DELAY);
};

handleFocus = () => {
if(this.props.onFocus) {
this.props.onFocus.call();
}
this.setState({ displayResults: true });
};
`

Merged in #35

commented

Great, thanks
One more question, when i should expect this updates will be pushed to npm?

v2.2.0 is now up.