Merge pull request #2 from kuuup-at-work/master

Fix renderMatchingLabel for indexOfMatch > 0
This commit is contained in:
Andre 2019-08-21 15:39:27 +02:00 committed by GitHub
commit 9f69dc86ee

View File

@ -252,7 +252,7 @@ class DataListInput extends React.Component {
<strong>
{ item.label.substr( indexOfMatch, currentInput.length ) }
</strong>
{ item.label.substr( currentInput.length, item.label.length ) }
{ item.label.substr( indexOfMatch + currentInput.length, item.label.length ) }
</React.Fragment>
);