aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/MessageInput.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-11-14 14:32:50 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commit6ecde9590b68189ca96fd0f2afccbd60d44f5950 (patch)
treefc7c60f76858599536fd8e0a5b4d2bb7e1fcb43b /vnext/src/ui/MessageInput.js
parent546a94714b993e5fea838ef7326ed962f7cbb3ef (diff)
Fix some jsdoc definitions
Diffstat (limited to 'vnext/src/ui/MessageInput.js')
-rw-r--r--vnext/src/ui/MessageInput.js6
1 files changed, 4 insertions, 2 deletions
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
*/