mirror of https://github.com/harness/drone.git
minor fixing based on first feedback :) (#3365)
parent
9e5972604c
commit
890a22bc13
|
@ -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])
|
||||
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue