From 4136658ae309c314283e491a1b814201d57e6825 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Mon, 31 May 2021 13:23:57 +0400 Subject: [PATCH] SuggestionsList: Try to use a unique "key" --- .../components/src/form-token-field/suggestions-list.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/components/src/form-token-field/suggestions-list.js b/packages/components/src/form-token-field/suggestions-list.js index af8a2141352ab..0f8b44c4068a0 100644 --- a/packages/components/src/form-token-field/suggestions-list.js +++ b/packages/components/src/form-token-field/suggestions-list.js @@ -110,7 +110,11 @@ class SuggestionsList extends Component { id={ `components-form-token-suggestions-${ this.props.instanceId }-${ index }` } role="option" className={ classeName } - key={ this.props.displayTransform( suggestion ) } + key={ + suggestion?.value + ? suggestion.value + : this.props.displayTransform( suggestion ) + } onMouseDown={ this.handleMouseDown } onClick={ this.handleClick( suggestion ) } onMouseEnter={ this.handleHover( suggestion ) }