Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Input): Fix logic for isFloating detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn committed Sep 18, 2019
1 parent 919a45e commit 5aad614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class Input extends Component {

const { focused, height, value } = this.state;

const isFloating = (floating && value !== undefined && !!`${value}`.trim()) || (floating && focused);
const isFloating = (floating && value != null && !!`${value}`.trim()) || (floating && focused);

const inputProps = {
...rest,
Expand Down

0 comments on commit 5aad614

Please sign in to comment.