[GH-1315] Fix card automatically scrolls to bottom (#1573)

* fix: card automatically scrolls to bottom

* fix: update jest snapshots
This commit is contained in:
Nishant Mittal 2021-10-16 17:18:12 +05:30 committed by GitHub
parent b5a194b62c
commit ffbd22afb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -36,7 +36,7 @@ exports[`components/cardDetail/cardDetailContents should match snapshot 1`] = `
class="EasyMDEContainer"
>
<div
class="CodeMirror cm-s-easymde CodeMirror-wrap CodeMirror-focused"
class="CodeMirror cm-s-easymde CodeMirror-wrap"
>
<div
style="overflow: hidden; position: relative; width: 3px; height: 0px;"

View File

@ -3,14 +3,15 @@
exports[`components/content/TextElement return a textElement 1`] = `
<div>
<div
class="MarkdownEditor octo-editor "
class="MarkdownEditor octo-editor active"
>
<div
class="octo-editor-preview octo-placeholder"
style="display: none;"
/>
<div
class="octo-editor-active Editor"
style="visibility: hidden; position: absolute; top: 0px; left: 0px;"
style=""
>
<div
id="test-id-wrapper"
@ -140,6 +141,7 @@ exports[`components/content/TextElement return a textElement and do a blur event
>
<div
class="octo-editor-preview octo-placeholder"
style=""
/>
<div
class="octo-editor-active Editor"

View File

@ -33,7 +33,6 @@ const MarkdownEditor = (props: Props): JSX. Element => {
autoDownloadFontAwesome: true,
toolbar: false,
status: false,
autofocus: true,
spellChecker: true,
nativeSpellcheck: true,
minHeight: '10px',