[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" class="EasyMDEContainer"
> >
<div <div
class="CodeMirror cm-s-easymde CodeMirror-wrap CodeMirror-focused" class="CodeMirror cm-s-easymde CodeMirror-wrap"
> >
<div <div
style="overflow: hidden; position: relative; width: 3px; height: 0px;" style="overflow: hidden; position: relative; width: 3px; height: 0px;"

View File

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

View File

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