This repository was archived by the owner on Jun 13, 2023. It is now read-only.
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
TextField not displaying placeholder value #98
Open
Description
showLastTag
function prevent placeholder from displaying on the input field. This is because the initial value of text
in state is set to a whitespace instead of an empty string.
showLastTag = () => {
this.setState(state =>
({
tags: state.tags.slice(0, -1),
text: state.tags.slice(-1)[0] || " "
}),
() =>
this.props.onChangeTags && this.props.onChangeTags(this.state.tags)
);
};
Metadata
Metadata
Assignees
Labels
No labels