Skip to content

Commit

Permalink
minor fixing based on first feedback :) (harness#3365)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesHarness committed Sep 21, 2023
1 parent 9e59726 commit 890a22b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down
2 changes: 1 addition & 1 deletion web/typed-scss-modules.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://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'
}

0 comments on commit 890a22b

Please sign in to comment.