diff --git a/src/MarkdownTextInput.web.tsx b/src/MarkdownTextInput.web.tsx index e1fd9d3b..6be4fb42 100644 --- a/src/MarkdownTextInput.web.tsx +++ b/src/MarkdownTextInput.web.tsx @@ -16,7 +16,7 @@ import type {CSSProperties, MutableRefObject, ReactEventHandler, FocusEventHandl import {StyleSheet} from 'react-native'; import {updateInputStructure} from './web/utils/parserUtils'; import InputHistory from './web/InputHistory'; -import type {MarkdownRange} from './commonTypes'; +import type {MarkdownRange, InlineImagesInputProps} from './commonTypes'; import type {TreeNode} from './web/utils/treeUtils'; import {getCurrentCursorPosition, removeSelection, setCursorPosition} from './web/utils/cursorUtils'; import './web/MarkdownTextInput.css'; @@ -24,7 +24,6 @@ import type {MarkdownStyle} from './MarkdownTextInputDecoratorViewNativeComponen import {getElementHeight, getPlaceholderValue, isEventComposing, normalizeValue, parseInnerHTMLToText} from './web/utils/inputUtils'; import {parseToReactDOMStyle, processMarkdownStyle} from './web/utils/webStyleUtils'; import {forceRefreshAllImages} from './web/inputElements/inlineImage'; -import type {InlineImagesInputProps} from './commonTypes'; const useClientEffect = typeof window === 'undefined' ? useEffect : useLayoutEffect; @@ -670,7 +669,7 @@ const MarkdownTextInput = React.forwardRef( updateTextColor(divRef.current, value); }, - [multiline, processedMarkdownStyle, value, maxLength], + [parser, multiline, processedMarkdownStyle, value, maxLength], ); useClientEffect(