~vesto/grooveboat

d1134d8a281556386726cfa522dc29e239f07dc8 — Steve Gattuso 5 years ago e736633 + 7cef446
Merge pull request #32 from Jesus/jb-fix-30

Fixes losing the focus on textarea in Chrome
1 files changed, 2 insertions(+), 1 deletions(-)

M src/js/pages/room/index.js
M src/js/pages/room/index.js => src/js/pages/room/index.js +2 -1
@@ 401,6 401,8 @@ const Chat = () => {
  };

  const onKeyPress = (e) => {
    if (sendingMessage) return;

    if (e.key === 'Enter') {
      dispatch(RoomActions.sendChat());
      e.preventDefault();


@@ 437,7 439,6 @@ const Chat = () => {
      <div className="chat--compose">
        <textarea
          placeholder="type it and hit enter"
          disabled={sendingMessage}
          onChange={onChange}
          value={newMessage}
          onKeyPress={onKeyPress}