minor fixing based on first feedback :) (#3365)

jobatzil/fix/autolicense
Johannes Batzill 2023-09-21 13:45:17 -07:00 committed by GitHub
parent 9e5972604c
commit 890a22bc13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -231,8 +231,8 @@ export function MarkdownEditorWithPreview({
}, [viewRefProp, viewRef.current]) // eslint-disable-line react-hooks/exhaustive-deps
useEffect(() => {
if (autoFocusAndPosition) {
scrollToAndSetCursorToEnd(containerRef, viewRef, value)
if (autoFocusAndPosition && !dirty) {
scrollToAndSetCursorToEnd(containerRef, viewRef, value, true)
}
}, [autoFocusAndPosition, value])

View File

@ -15,6 +15,6 @@
*/
export const config = {
banner: '/* eslint-disable */\r\n// This is an auto-generated file',
banner: '/*\n * Copyright 2023 Harness, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable */\n// This is an auto-generated file',
logLevel: 'error'
}