more tab cleanup

This commit is contained in:
Ginger Wong 2020-08-26 00:57:15 -07:00
parent b399fbba22
commit cd5f71265a

View File

@ -8,7 +8,6 @@ import { generatePlaceholderText, getCaretPosition } from '../../utils/chat.js';
import { getLocalStorage, setLocalStorage } from '../../utils/helpers.js'; import { getLocalStorage, setLocalStorage } from '../../utils/helpers.js';
import { URL_CUSTOM_EMOJIS, KEY_CHAT_FIRST_MESSAGE_SENT } from '../../utils/constants.js'; import { URL_CUSTOM_EMOJIS, KEY_CHAT_FIRST_MESSAGE_SENT } from '../../utils/constants.js';
export default class ChatInput extends Component { export default class ChatInput extends Component {
constructor(props, context) { constructor(props, context) {
super(props, context); super(props, context);
@ -62,7 +61,6 @@ export default class ChatInput extends Component {
initialCategory: 'custom', initialCategory: 'custom',
showPreview: false, showPreview: false,
emojiSize: '30px', emojiSize: '30px',
// emojisPerRow: 6,
position: 'right-start', position: 'right-start',
strategy: 'absolute', strategy: 'absolute',
}); });
@ -146,7 +144,6 @@ export default class ChatInput extends Component {
'Delete', 'Delete',
'Backspace', 'Backspace',
]; ];
// const okCodes = [37,38,39,40,16,91,18,46,8];//left, up , right , down , shift, left window key, alt, delete, backspace
const formField = this.formMessageInput.current; const formField = this.formMessageInput.current;
let textValue = formField.innerText.trim(); // get this only to count chars let textValue = formField.innerText.trim(); // get this only to count chars