Fix renderMatchingLabel for indexOfMatch > 0

This commit is contained in:
Peter Kupietz 2019-08-21 15:18:41 +02:00 committed by GitHub
parent 74e529122b
commit 4cca2f2305

View File

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