From 6ecde9590b68189ca96fd0f2afccbd60d44f5950 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 14 Nov 2019 14:32:50 +0300 Subject: Fix some jsdoc definitions --- vnext/src/ui/MessageInput.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vnext/src/ui/MessageInput.js') diff --git a/vnext/src/ui/MessageInput.js b/vnext/src/ui/MessageInput.js index e19136d4..e20d5100 100644 --- a/vnext/src/ui/MessageInput.js +++ b/vnext/src/ui/MessageInput.js @@ -13,8 +13,10 @@ import UploadButton from './UploadButton'; function moveCaretToEnd(el) { if (typeof el.selectionStart == 'number') { el.selectionStart = el.selectionEnd = el.value.length; + // @ts-ignore } else if (typeof el.createTextRange != 'undefined') { el.focus(); + // @ts-ignore var range = el.createTextRange(); range.collapse(false); range.select(); @@ -24,9 +26,9 @@ function moveCaretToEnd(el) { /** * @typedef {Object} MessageInputProps * @property {string} text - * @property {import('../api').Message} data + * @property {import('../api').Message=} data * @property {function} onSend - * @property {number} rows + * @property {number=} rows * @property {string} children */ -- cgit v1.2.3