@antscorp/antsomi-ui 1.3.5-beta.906 → 1.3.5-beta.907
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -390,6 +390,11 @@ const TagifyInput = forwardRef((props, ref) => {
|
|
|
390
390
|
throw new Error('Tagify instance is not initialized');
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
|
+
reset() {
|
|
394
|
+
if (tagifyRef.current) {
|
|
395
|
+
tagifyRef.current.removeAllTags();
|
|
396
|
+
}
|
|
397
|
+
},
|
|
393
398
|
}), [onInjectTagAtCaret, placeCaretAfterNode]);
|
|
394
399
|
const onTagItemClick = useCallback((event) => {
|
|
395
400
|
event.stopPropagation();
|