Add conditional to prevent superfluous rerenders in chat compose (#5705) [deploy]
This commit is contained in:
parent
49474d516e
commit
8ed94c8fb1
2 changed files with 2 additions and 2 deletions
|
|
@ -1231,7 +1231,7 @@ export default class Chat extends Component {
|
|||
if (startEditing) {
|
||||
this.setState({ markdownEdited: true });
|
||||
}
|
||||
if (!e.target.value.includes('@')) {
|
||||
if (!e.target.value.includes('@') && showMemberlist) {
|
||||
this.setState({ showMemberlist: false });
|
||||
} else {
|
||||
this.setQuery(e.target);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<% title "DEV Connect 👩💻 💬 👨💻" %>
|
||||
<% title "DEV Connect 👩💻💬👨💻" %>
|
||||
<%= content_for :page_meta do %>
|
||||
<link rel="canonical" href="https://dev.to/connect" />
|
||||
<meta name="description" content="DEV Connect">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue