diff --git a/wax-prosemirror-components/src/components/customtag/CustomTagBlockComponent.js b/wax-prosemirror-components/src/components/customtag/CustomTagBlockComponent.js index 14d71e2314b5d2be99743afe0c9ec92ff19d74a3..ecdb3778fdc86bdd53738c280e5c6e8751d45110 100644 --- a/wax-prosemirror-components/src/components/customtag/CustomTagBlockComponent.js +++ b/wax-prosemirror-components/src/components/customtag/CustomTagBlockComponent.js @@ -121,7 +121,7 @@ const CustomTagBlockComponent = ({ isShowTag, item }) => { if (inputValue.trim() === '') return; configTags.push({ label: inputValue, tagType: 'block' }); setAllTags(configTags); - saveTags(configTags); + saveTags({ label: inputValue, tagType: 'block' }); setInputValue(''); if (ref.current) ref.current.focus(); }; @@ -178,7 +178,7 @@ const CustomTagBlockComponent = ({ isShowTag, item }) => { {renderTagList()} </> ), - [isShowTag, inputValue, tagStatus, isDisabled], + [isShowTag, inputValue, JSON.stringify(tagStatus), isDisabled], ); }; diff --git a/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js b/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js index 00187f37ef6769b039e8763df9f26648d43a7074..aae723d7255e4bd21c0a208cf3f24fe61a996a46 100644 --- a/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js +++ b/wax-prosemirror-components/src/components/customtag/CustomTagInlineOverlayCompoment.js @@ -132,7 +132,7 @@ const CustomTagInlineOverlayComponent = ({ mark, setPosition, position }) => { configTags.push({ label: inputValue, tagType: 'inline' }); setAllTags(configTags); - saveTags(configTags); + saveTags({ label: inputValue, tagType: 'inline' }); setInputValue(''); if (ref.current) ref.current.focus(); setInputValue('');