Commit 511259c0 authored by Mike Greiling's avatar Mike Greiling

fix issue in which multiple pending references with same name could not be removed

parent 8214e0c3
......@@ -119,8 +119,13 @@ export default {
role="button"
@click="onInputWrapperClick">
<ul class="add-issuable-form-input-token-list">
<!--
We need to ensure this key changes any time the pendingReferences array is updated
else two consecutive pending ref strings in an array with the same name will collide
and cause odd behavior when one is removed.
-->
<li
:key="reference"
:key="`${pendingReferences.length}-${reference}`"
v-for="(reference, index) in pendingReferences"
class="js-add-issuable-form-token-list-item add-issuable-form-token-list-item">
<issue-token
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment