diff --git a/src/index.tsx b/src/index.tsx index b535239..4492829 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -23,6 +23,7 @@ export interface TagsInputProps { classNames?: { input?: string; tag?: string; + container?: string; }; } @@ -56,7 +57,7 @@ export const TagsInput = ({ } }, [value]); - const handleOnKeyUp = e => { + const handleOnKeyUp = (e) => { e.stopPropagation(); const text = e.target.value; @@ -84,14 +85,17 @@ export const TagsInput = ({ } }; - const onTagRemove = text => { - setTags(tags.filter(tag => tag !== text)); + const onTagRemove = (text) => { + setTags(tags.filter((tag) => tag !== text)); onRemoved && onRemoved(text); }; return ( -
- {tags.map(tag => ( +
+ {tags.map((tag) => (