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

fix(Input): Display floating input label if value is not undefined #50

Merged
merged 5 commits into from
Aug 1, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Form/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class Input extends Component {
...rest
} = this.props;

const isFloating = (floating && value && value.length > 0) || (floating && this.state.value);
const isFloating = (floating && value && value.length > 0) || (floating && this.state.value !== undefined);
cehsu marked this conversation as resolved.
Show resolved Hide resolved

const inputProps = {
...rest,
Expand Down