+
+ {selected
+ .slice(0, showOverflow ? selected.length : showOverflowAfter)
+ .map(selectedItem => (
+ onRemove(selectedItem)}
+ >
+ {selectedItem.name}
+
+ ))}
+ {(
+ !showOverflow
+ && selected.length > showOverflowAfter
+ ) && (
+ this.showOverflow()}
+ >
+ {`${(selected.length - showOverflowAfter).toString()} more`}
+
+ )}
+
+