mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-02 09:27:53 +01:00
Merge pull request #2 from kuuup-at-work/master
Fix renderMatchingLabel for indexOfMatch > 0
This commit is contained in:
commit
9f69dc86ee
@ -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>
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user