We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 695b433 commit a36d6efCopy full SHA for a36d6ef
apps/audius-client/packages/web/src/components/data-entry/TagInput.js
@@ -34,11 +34,14 @@ class TagInput extends Component {
34
35
newTagInputRef = createRef()
36
37
- componentDidUpdate = () => {
+ componentDidUpdate = (prevProps, prevState) => {
38
if (this.state.typingMode && this.newTagInputRef.current) {
39
this.newTagInputRef.current.focus()
40
}
41
- if (this.state.tags !== this.props.tags) {
+ if (
42
+ prevState.tags === this.state.tags &&
43
+ prevProps.tags !== this.props.tags
44
+ ) {
45
this.setState({ tags: this.props.tags })
46
47
0 commit comments