Skip to content

Commit 7ece4b5

Browse files
Copilotgjulivan
andcommitted
Fix lint error: Add calculateCounts to onTextChange dependencies
Co-authored-by: gjulivan <[email protected]>
1 parent 0ee485e commit 7ece4b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/pluggableWidgets/rich-text-web/src/components/EditorWrapper.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ function EditorWrapperInner(props: EditorWrapperProps): ReactElement {
147147
if (stringAttribute.value !== quillRef?.current?.getSemanticHTML()) {
148148
setAttributeValueDebounce(quillRef?.current?.getSemanticHTML());
149149
}
150+
calculateCounts(quillRef.current);
150151
// eslint-disable-next-line react-hooks/exhaustive-deps
151-
}, [quillRef.current, stringAttribute]);
152+
}, [quillRef.current, stringAttribute, calculateCounts]);
152153

153154
const onSelectionChange = useCallback(
154155
(range: Range) => {

0 commit comments

Comments
 (0)